|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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... |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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; } |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > cout.setf(ios_base::boolalpha); or Alternative |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|