Skip to content

Instantly share code, notes, and snippets.

@illescasDaniel
Created November 26, 2016 16:00
Show Gist options
  • Select an option

  • Save illescasDaniel/349637df2a4ec2674177ddece1ce2fc1 to your computer and use it in GitHub Desktop.

Select an option

Save illescasDaniel/349637df2a4ec2674177ddece1ce2fc1 to your computer and use it in GitHub Desktop.
boolalpha [C++]
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
boolalpha(cout);
bool isBig = false;
bool hasGF = true;
cout << isBig << ' ' << hasGF << endl; // Output: false true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment