I agree w/ Happy - there are lots of C/C++ refs for string functions - maybe look in the library for String.h or something. Hell, if a blond can do it, I'm sure you can.
A couple options I can think of off the top of my head (left programming a couple years ago, so I'm kinda rusty):
- if you are reading the string in from a command line, put the function parameters into the arg [] array.
- I vaguely recall a function where you can read a string in and with the format of the call
<cant' remember the damn function name> (string, param1, param2, param3, etc)
if you know the exact form of the string
Else do the old loop where you identify a "token" separating each item in the string, such as a space, and loop through the string until "\n" or whatever end delimiter, reading each component of the string into an array, where the loop counter is the array index.
There are examples of all of these in any standard C/C++ reference.
Code to live / live to code!
