M
millerm
I'm obviously new to C, and have been trying different things to get
this done, but I'm at the end of the line and need some suggestions.
I am reading a string in from a user, in the form of a name, score,
and number of questions. It will be something like: Mark 98.2 20
all separated by spaces. I want to move each element into a temporary
variable so I can work with it, but thats where I'm running into
trouble. In a perfect world I would first move "Mark" to a variable,
work with it, then move "98.2", etc...
Any pointers or tips to methods, pages I might read, etc would be
appreciated. Thanks very much all.
Mark Miller
this done, but I'm at the end of the line and need some suggestions.
I am reading a string in from a user, in the form of a name, score,
and number of questions. It will be something like: Mark 98.2 20
all separated by spaces. I want to move each element into a temporary
variable so I can work with it, but thats where I'm running into
trouble. In a perfect world I would first move "Mark" to a variable,
work with it, then move "98.2", etc...
Any pointers or tips to methods, pages I might read, etc would be
appreciated. Thanks very much all.
Mark Miller