I am trying to figure out if there is a way to move certain characters in line while the user enters a number.
For example, I want the user to input their number between [__]. However, when the user enters the number, it will eventually overwrite the ']'. How would I move the ']' while the user enters numbers?
I am hoping I wouldn't have to loop and get single characters at a time. (I am expecting a double value)
std::cout << "Enter a number between 1 and 10: []\b\b";
std::cin >> variable;
// not sure if I should loop through individual character input from user.