Functions for converting strings to upper/lower case

Use following functions _strupr _strlwr std::transform – does the trick too but hard to understand [sourcecode language=’cpp’]/* STRLWR.C: This program uses _strlwr and _strupr to create  * uppercase and lowercase copies of a mixed-case string.  */ #include #include void main( void ) { char str[100] = “The String to End All Strings!”; printf( “Mixed: %sn”, […]
Continue reading…

 

Using std transform function

So what does std::transform function do? “Applies a specified function object to each element in a source range or to a pair of elements from two source ranges and copies the return values of the function object into a destination range.” Some general applications of using transform is as follows… For doing some kind of operation […]
Continue reading…