QUOTE(perfectly.insane @ 21 Aug, 2008 - 07:57 PM)

Well, if you take a look at the documentation to the getline function (http://www.cplusplus.com/reference/string/getline.html), you'll note that getline reads a line from the stream, up until the delimiter character, and then discards the delimiter. The string will never have a '\n' in it because of this. Plus, if you want to count lines, you'll need to read in more than one.
I understand what you are saying and yes I already knew about the last chacater (terminating character) not being counted/stored. Also, the only way i know to add lines is to terminate with a "." or "?" or "!" or some other chracter and when you want another line you press the Enter key and this takes you to the next line. With that being said, the assignment states that a line ends with a "Enter key. So how do you have more than one line and not have a special terminating character? I just may not be understanding the assignment right, but i am at a lost.
Ok, how about this. suppose i terminate the string with "%" and when you want a new line just press the Enter key. so when using the count code;
CODE
LineCount = count(message.begin(), message.end(), '????');
What character do i use to count the Enter key stroke???