Mega Code Archive

 
Categories / C++ / Data Type
 

Booleans in both formats

#include <iostream> #include <iomanip> using namespace std; int main() {   cout << "Default format: " << 123.123456789 << endl;   cout << "Booleans in both formats: ";   cout << true << " " << false << " " << boolalpha        << true << " " << false << "\n\n";   return 0; }