online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <algorithm> int main() { std::string str = "shIrley"; std::for_each(str.begin(), str.end(), [](char & c){ c = ::tolower(c); }); std::cout << str << std::endl; std::string str2 = "yeLRIhs"; std::for_each(str2.begin(), str2.end(), [](char & c){ c = ::toupper(c); }); std::cout << str2 << std::endl; 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