📅  最后修改于: 2022-03-11 14:44:52.843000             🧑  作者: Mango
#include
#include
#include
int main() {
std::string s = "HELLo";
if (std::all_of(s.begin(), s.end(), [](unsigned char c){ return std::isupper(c); })) {
std::cout << "Is uppercase." << '\n';
} else {
std::cout << "Is not uppercase." << '\n';
}
}