Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   split text (http://www.go4expert.com/forums/split-text-t7997/)

qiqinuinaifen128 26Dec2007 14:45

split text
 
How can i split the text that key in by user, for example if the user key in "MoveForward To 123", how can i split the "MoveForward" to one field, "To" in to one field and 123 in to another field..

below is my simple print and scanf

Code:

char y;
printf("Please Enter Your Command:");
scanf("%s", &y);

Thank You


All times are GMT +5.5. The time now is 00:07.