February 20th, 2003, 04:03 PM
-
cout.setf(ios_base::boolalpha); or Alternative
My complier will not recognize:
cout.setf(ios_base::boolalpha);
is there some thing that will do the same thing I am new and trying to learn C++ and this showed up in the book and it will not work. I am using Dev C++ 4.9.6.0
February 20th, 2003, 10:15 PM
-
that seems tough for a begginer to comprehend..Im just starting to get into OO in my book (around pg.300ish) and I wouldn't be able to tell you what that code does.
hmmm...
February 21st, 2003, 06:55 AM
-
more info
The program shows the value of expression the I insert the code
cout.setf(ios_base::boolalpha);
it is supposed to show the value in true or false.
February 23rd, 2003, 05:03 AM
-
this works in VC++ 6:
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
cout.setf(ios_base::boolalpha);
bool wise = true;
cout << wise;
return 0;
}