How do I grab an entire statement into a string?
I've tried getline(std::cin, str) but it doesnt even let me input anything, just continues on. I could do cin >> str, but I want the entire line. And if you are going to suggest multiple cin with multiple variables, I dont know how many words are going to come in, so I can't just concatenate that way. Any ideas to get the entire line? EDIT: solved. Problem was that I used a std::cin before hand. FIxed by using std::cin.ignore() before getline function