Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::toupper is a function defined in the header file cctype.h to convert a char to upper case.
StrToUpper can be implemented using a for loop, but prefer algorithm calls over hand-written loops [1][2]. View Exercise #9: No for-loops for other ways of replacing for-loops by algorithms.
#include <cctype> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.