C++ code needed!!!!!!!!!!!!!!!?

C++ Got ya down? Half-Life 2 Coding Related.
Post Reply
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Re: C++ code needed!!!!!!!!!!!!!!!?

Post by Neico »

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
Image
User avatar
Datastream
Donator
Donator
Posts: 870
Joined: Thu Dec 24, 2009 1:24 pm

Re: C++ code needed!!!!!!!!!!!!!!!?

Post by Datastream »

This thread dun goofed. Who are you talkin to?
Post Reply