Locale Convenience Function
Converts a character to upper case.
None
#include <locale> template <class charT> charT toupper (charT c, const locale& loc) const;
The toupper function returns the parameter c after converting it to upper case. The conversion is made using the ctype facet from the locale parameter.
// // toupper.cpp // #include <iostream> int main () { using namespace std; locale loc; cout << 'a' << toupper('c') << tolower('F') << endl; return 0; }