Hi,
This is what I am used to from C.
Code:void func1(char *str); int main () { char str[80]; strcpy(str, "Hello Friend"); func1(str); cout << str; return 0; } void func1(char *str) { while(*str) { if (isupper(*str)) *str = tolower(*str); else if (islower(*str)) *str = toupper(*str); str++; } }
Now that I am looking into and learning C++ I think I read somewhere that strings are easier to use. Can anyone assist?
Thanks