+ 1
Why doesn't it give me some answers in this code? Can you help me please?
3 ответов
+ 5
Change cin to getline(cin, string_variable)... Check my encryption code if it's not clear how to use getline... Regular cin doesn't support spaces
+ 4
Check my encryption code to see how to use getline.... It doesn't ignore spaces..... Your code works perfect with single word inputs like wow! And hi.... But 2 or more words, nothing.... That's what getline(cin, string_variable) is for, multiple words input
+ 1
so...if i understood i have to write getline instead of cin? that's all?