Hello all,
I was wondering if there is an easy way to have text to the right of the user input. I am basically trying to have a percent sign after user input. I would like it to appear like this, the blank just represents where the input will go.
"What is the interest rate?"
_________%
Part of my code so far
1 2
cout << "What is the interest rate?\n";
cin >> interestRate;
Not in any standard way. Because there is no "console" in pure C++, only streams. You will need to study platform dependend way of console window manipulation to do that. If you are on Windows, I suggest lookin ove MSDN, it has good documentation on WinAPI.