![]() |
Show 150 posts per page |
.dsy:it. (http://www.dsy.it/forum/)
- Algoritmi e strutture dati (http://www.dsy.it/forum/forumdisplay.php?forumid=207)
-- [ALGORITMI] Problemino (http://www.dsy.it/forum/showthread.php?threadid=16687)
problemino
ciao a tutti..sto facendo 1 progetto di algoritmi ed e' richiesto in input da tasiera una linea di ingresso del tipo: "CR A B C " dove CR vuol dire "CREA" e A ,B ,C sono dei valori numerici (ogni valore deve essere separato da 1 spazio)..Come posso fare a implementare qualcosa fatta bene x prendere questi valori d'ingresso? grazie e ciao a todos![]()
in che linguaggio scusa?dovresti acquisire la stringa, suddividerla nelle varie parti e controllare i singoli dati.
in java per esempio c'è la StringTokenizer
__________________
www.alterazione.com www.andreaforzani.com
www.myspace.com/alterazione
www.myspace.com/festaincravilla
ops scusami!! in C..io sto provando a leggere la stringa con getchar e facendo 1 "case" per conntrollare carattere x carattere..puo' andar bene x 1 progetto o e' troppo spartano?
C'è già un thread sul progetto CONTROLLO REMOTO... se guardi lì trovi un po' di cose, cmq si fa come hai fatto tu...
__________________
Sometimes you hurt the ones who love you most and sometimes you hold the ones who leave you lost,
and sometimes you learn
but its too late, it's too late. EI
| All times are GMT. The time now is 18:28. | Show all 4 posts from this thread on one page |
Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.