char array[25]; sprintf(array, "%d", i ); int cifre = strlen( array); return 0; } ********************************************* dette ind og får denne error: ********************************************* --------------------Configuration: hey - Win32 Debug-------------------- Compiling... hey.c C:\Documents and Settings\Administrator\Desktop\hey.c(10) : error C2143: syntax error : missing ';' before 'type' Error executing cl.exe.
char array[25]; _itoa( i, array, 10 ); //sprintf(array, "%d", i ); int cifre = strlen( array);
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.