C++ Program #2
Write your own string functions that will perform exactly like the following
string functions, as defined by the ANSI standard:
strcat()
strchr()
strcmp()
strcpy()
strlen()
strnset()
strrchar()
strrev()
You may not use any existing string functions; however you may use any of
these functions that you have written to help you write some of the other
ones. Your functions should have the same names as the ones above but append
"my_" to the beginning of each name.
Use std::cin.getline(str, 100) as input for this program.
|