online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> int main() { std::cout << "By default right: " << (std::cout.flags() & std::ios_base::right) << std::endl; //#1 prints 0 NOT EXPECTED std::cout.setf(std::ios_base::right, std::ios_base::adjustfield); //manually set right std::cout << "After manual right: " << (std::cout.flags() & std::ios_base::right) << std::endl; //#2 prints 128 as expected }

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