The following statement
cin.getline(aString,80):
will read the whole line from the input.
True/ False
The answer is True, but I do not understand why. I am aware that(unlike cin) getline reads stuff like whitespaces, howeverdoesn't the "80" mean that it will only read up to a length of 80only and thus, not necessarily the whole line?
The following statement cin.getline(aString, 80): will read the whole line from the input. True/ False The answer is Tru
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am