Try using this:This way you don't need to worry about array sizesCode:#include <iostream> #include <string> void code() { string lin; getline(cin, lin); }![]()
|
Results 1 to 23 of 23
Thread: cin.getline() Not Working?Threaded View
|
Click Here to Expand Forum to Full Width |