What does this mean?

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.
search for it (getline) in the Search box above.
Last edited on

getline(/*input stream*/, /*string*/, /*delimiting character*/);

Delimiting character is \n by default.
Thank you, didn't notice the search box.
Topic archived. No new replies allowed.