Hi,
I'm new to c++, and am trying to parse a string and find the number of lines...
I am having problems finding all the carriage returns with the following code:
char* tmp;
//skip to the end of the line
while (*tmp != '\n')
tmp++;
Is there a better way of finding this character?
Thanks.
I'm new to c++, and am trying to parse a string and find the number of lines...
I am having problems finding all the carriage returns with the following code:
char* tmp;
//skip to the end of the line
while (*tmp != '\n')
tmp++;
Is there a better way of finding this character?
Thanks.