 |
ripe |
- up in the mountains -

Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline
Edit | Report | IP: Logged |
Ma perchè pensate ad usare gli array? Ha dato giusto giusto le funzioni per manipolare le stringhe! Con charAt() trovate il carattere alla posizione che desiderate e per concatenare due stringhe fate come fareste normalmente in un messaggio di output. Voi ad ogni passaggio fate un controllo per vedere se la stringa scritta fino a quel momento è "smack" e se lo è resettate la stringa di ricezione, altrimenti continuate ad attendere altre lettere nel ciclo.

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»
|