all you fresh programmers i have something that will challenge you.
I will reveal the answer by tomarrow if you cant figure it out.ONLY FOR NEW PROGRAMMERS.
lets assume tat we dont have all the functions that exist in <string.h> and <ctype.h>. create a small library that will take care of some of these tasks. call the class myString.h. Your class should have the following functions. you may not use any of the C++ functions like toUpper, toLower, isUpper, isLower, etc.
myToUpper: this function will take a char from main and convert it into an upper case letter. this function will then return the new char to main. before you call this function from the driver you should make sure that what ws entered was an alpha character. (use the ASCII chart for reference)
myLength: this function will take a char array from main and return the integer number of characters that are in the array.
myStrcpy: this function will take two char arrays and arguements and copy the contents of the second into the first. you may have this function call your length function if you need to.
stringEmpty: this function will essentially clear out any char array. it will take the char array and its size from main and assign all empty spaces to it, with a null char at the end. this will be of void return type.
you should creat a driver that will display the use of this library.