there are different ways, one would be to make a loop and replace the lower case character with its uppercase one and vice versa (as each character is basically just an ASCII / Unicode number)
another way would be to use already available functions toupper() tolower()
and if you want you could also take a look at the Boost Lib which offer those functions in real C++ OOP syntax
http://www.boost.org/doc/libs/1_45_0/do ... lower.html
http://www.boost.org/doc/libs/1_45_0/do ... upper.html
C++ Got ya down? Half-Life 2 Coding Related.
2 posts • Page 1 of 1