I have to make a code that read a line strings from user and divides this string when there is a space, store and then do some operations with this input.
For example the input can be like That :
"set 11643133 name Alex Jon"
all this it have to be input in a one line, and I have to divide it for set a name "Alex Jon" to the student's ID "11643136"
I really have to hand the project in nearest time, I just want to ask if there is a simple way or some standard commands maybe can it helps me at that ?
*I use getstr()
and string.substr()