Multiple word string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Multiple word string

I am half way through C++ lessons but I still can't find the way to assign multiple words to a string-type-variable . let say when I assigns string a; a = "multiple word"; it will just print the word "multiple" . a colleague asked me to research on getLine() method but still not quite understand .

2nd Jan 2017, 7:28 AM
Billy Anak Leo
Billy Anak Leo - avatar
0 Answers