int toupper(int iChar);
#include <iostream> #include <cctype> int main() { using namespace std; int iChar = (int)'t'; cout << "The original character was " << (char)iChar << " with ASCII value " << iChar << endl; iChar = toupper(iChar); cout << "The converted character is " << (char)iChar << " with ASCII value " << iChar << endl; return 0; }
© 20072024 XoaX.net LLC. All rights reserved.