ok here is the string to be parsed at the %n symbol.
This is the first line of the input%nThis is the second line of the input%nthird line%nlast line
This line is in one file and I have to open the file read it and write it to another file which I can do the problem is I do not know how to parse it at the %n symbol and exclude it from the line. how would this be done not using arrays or loops is there some statement I need to add to the code.
I will put the code in next
Parsing of a string in C++?
Look into strtok() if you are using a char array or the key word Tokenize.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment