online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <algorithm> bool areUpperCase (std::string& str) { if (std::all_of(str.begin(), str.end(), [](char c) { return isupper(c);})) { return true; } return false; } int main() { std::string str = "shirley"; if (std::all_of(str.begin(), str.end(), [](char c) { return islower(c);})) { std::cout << "String " << str << " is lower" << std::endl; } else { std::cout << "Not all characters are lowercase\n";} str = "ROSE"; if (areUpperCase(str)) { std::cout << "String " << str << " is upper" << std::endl; } else { std::cout << "Not all characters are uppercase\n";} return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue