#include <iostream> #include <cstring> #include <cctype> using namespace std; int main() { char str[80]; int i; strcpy(str, "this is a test"); for(i=0; str[i]; i++) str[i] = toupper(str[i]); cout << str; return 0; }
THIS IS A TEST