So I do know about toupper function and using it as a loop to convert the a lowercase string into uppercase. However, this is not what I require for my program.
What I need is somewhat having the caps lock turned on, but only for my application. Other programs would not be affected.
Is this possible in C++? By the way, I am making a game kinda like super text twist, and it is only a console application.
The simple way would be to inherit from std::char_traits<char> and implement the overloads of assign(), and to_char_type() converting lower case chars to upper case.
If you are looking to make sure all user input in an interactive console UI program is uppercase, don't bother messing with locales. Just convert it to uppercase in your input handler -- that is, wherever you get input.