thanks guys it worked.
thats was only part1.
i still have to....
Erase all leading whitespace from a string
Erase all trailing whitespace from a string
Erase all leading & trailing whitespace from a string
Determine if a char is lower case
Determine if a char is upper case
Change a lower case char to an upper case char
Change an uppercase char to a lower case char
Change all lower case letters in a string to upper case
Change all upper case letters in a strng to lower case
any peusodcode ideas?
p.s just ideas and pseudo no answers.
Now consider what you can do with that tool. The example doesn't show all of the possibilities. You could use the # as your delimiter character which is the 3rd param of the function. If you are reading a config file you could loop and call getline for every line in the file using # as the delimiter. Comment lines won't even be read into the file. The lines that have comments at the end will only be read into the program up until the # character is reached. That could be useful so that you don't have to read unnecessary information into the program.