[cs13001] mixing getline() and extraction operator when doing string input

Mikhail Nesterenko mikhail at cs.kent.edu
Sat Oct 6 17:58:47 EDT 2012


CSI students,

As I mentioned in class, there are specifics of using getline() and
extraction (>>) operator for string input. Getline() inputs the line
including the end of line character, while the extraction operator
leaves it out.

Here is a more detailed message about it, I sent last semester.

  https://listmail.cs.kent.edu/pipermail/cs23021-2/2012/000180.html

Thanks,
-- 
Mikhail


More information about the cs13001 mailing list