ho delle stringhe di questo tipo

"winds-2002043021-wspd.txt"


Devo estrarre e convertire in int, solo le ultime 4 cifre numeriche in due blocchi da due


es.

input
"winds-2002043021-wspd.txt"

output
int l1=30
int l2=21

la conversione da string a int la faccio con atoi
ma come faccio a selezionare le due sottostringhe?

ringrazio anticipatamente chiunque sia in grado di aiutarmi


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Rispondere a