I am reading C++ tutorial and I just don't see how getline(sth1, sth2) works.
or how sth.sth() like cin.getline is different with just cin or getline.
So I think there may be C++ syntax dictionary as C++ tutorial exists here. if you know any, please tell me. it will be a great help to me.
Thanks !
There's a link to the
Reference in the upper left.
At the top there's a
Search: box where you can type "getline" and get help.
getline() is a function like any other, taking two arguments by reference: an istream and a string.
[edit]
http://www.cplusplus.com/reference/string/string/getline/
Last edited on