Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to print with the bool value in cpp

#include <iostream>
#include <iomanip>

int main() {
    std::cout<<false<<"
";
    std::cout << std::boolalpha;   
    std::cout<<false<<"
";
    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #bool #cpp
ADD COMMENT
Topic
Name
6+2 =