0

I have linked my code here.

Hi, I am making an assistant type thing but I am running into an issue with my calculator. Every time I run the program and use the calculator it always skips the last 2 lines of code in the while() function, which are:

    getline(cin, cho);
    transform(cho.begin(), cho.end(), cho.begin(), ::toupper);

And after that, it ends the program straight away. Instead of the program ending, I would like it to allow me to type in the user input. Any ideas on why this might be happening and how I could fix it?

Ahendall
  • 31
  • 6
  • Don;'t link to important stuff like code. Put it into the question so the question is still useful after the link rots. Prefer to craft and post a [mre] to posting the complete program code. Often making the MRE reveals the bug to you and eliminates the need for the question. If you'r asking a question before producing a MRE, you're asking the question too soon. – user4581301 Jun 12 '20 at 21:22

0 Answers0