online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string> #include <algorithm> // transform auto to_lower_but_first(const std::string& str) { if (str.length() < 2) return str; auto retval{ str }; std::transform(retval.begin() + 1, retval.end(), retval.begin() + 1, ::tolower); return retval; } int main() { std::string str = "FbcdADcdeFDde!@234"; auto lstr = to_lower_but_first(str); std::cout << lstr << "\n"; std::cout << to_lower_but_first(""); 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