Make user input area to the left of text

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;


Thanks!
Last edited on
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.
Thanks! I kind of thought it would be a little more difficult because Google failed me.
Topic archived. No new replies allowed.