(C++) std::isupper
January 11, 2018 · View on GitHub
(C++) std::isupper
std::isupper is an STL function to check if a character is an uppercase alphabetic letter.
#include <cassert> #include <cctype> int main() { assert(!std::isupper('a')); assert(std::isupper('A')); assert(!std::isupper('1')); assert(!std::isupper('@')); }