cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
What does this mean?
What does this mean?
Oct 17, 2013 at 8:19pm UTC
FredTheSandwich
(5)
Just started learning C++ yesterday and I'm not sure whether I've skipped over it but I'm not sure what the following does or means
getline ( cin, username,
'\n'
);
I know what this is used for as I've done it in codeblocks but I'm not sure what 'getline' or 'cin' do.
Oct 17, 2013 at 8:27pm UTC
ShodanHo
(110)
search for it (getline) in the Search box above.
Last edited on
Oct 17, 2013 at 8:27pm UTC
Oct 17, 2013 at 8:28pm UTC
GRex2595
(519)
http://www.cplusplus.com/reference/string/string/getline/
Simplified
getline(
/*input stream*/
,
/*string*/
,
/*delimiting character*/
);
Delimiting character is \n by default.
Oct 17, 2013 at 8:43pm UTC
FredTheSandwich
(5)
Thank you, didn't notice the search box.
Oct 17, 2013 at 8:46pm UTC
GRex2595
(519)
Google.
Topic archived. No new replies allowed.