For some reason, when running this, the first time getline() is called, i have to hit enter twice before execution continues. After the first time, everything works normally as expected, but then the while loop seems to go thru one more time even after the "break" should have happened after typing in "exit."
I am guessing these are two seperate issues but can't figure out how to fix either or why they are happening.. tried inserting "cin.clear();" randomly in different places before and after the call to "getline()" without much expectations or success. I was able to find a lot of people on forums like this one having similar issues with getline, but invariably those people all were using cin >>, cin.ignore, or cin.get in combination with getline, and as you can see in the code, only getline is used here or anywhere else in the program for getting input.
This is me trying to get back into writing code after a long break. So frustrating to be running into issues with such basic stuff -.- Thanks for taking the time to help me out with this
So i'm unsure whether to just bump this or create a new topic.. At this point I have for some reason different behavior on my machine than what the c++ shell on this website produces.. what would cause that? I don't even know enough about how a compiler works to know where to start looking for an answer to this.