what is the difference between ch=get.line before loopand ch= get. line inside while
General doubt it
There’s nothing like ch = get.line in c++,
There’s getline function which Extracts characters from is and stores them into str until the delimitation character delim is found (or the newline character, ‘\n’).
Syntax: getline (cin,name);
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.