I am trying to read in two strings separated by a space.
cin>>a;
cin>>b;
This should technically work. I have also used getline but it doesnt seem to work.
It reads in some of the inputs and gets stuck on others
Edit: Added C++ tag, kept C tag since it’s part of the original post.
This:
compiles, runs, and prints
"wrgl" "zrgl"on my machine.