C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 20th, 2003, 04:03 PM
GreyHell GreyHell is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 2 GreyHell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to GreyHell
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

Reply With Quote
  #2  
Old February 20th, 2003, 10:15 PM
andy3109's Avatar
andy3109 andy3109 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 421 andy3109 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 46 m 21 sec
Reputation Power: 6
Send a message via AIM to andy3109
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...

Reply With Quote
  #3  
Old February 21st, 2003, 06:55 AM
GreyHell GreyHell is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 2 GreyHell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to GreyHell
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.

Reply With Quote
  #4  
Old February 23rd, 2003, 05:03 AM
ahuimanu ahuimanu is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Right Coast
Posts: 25 ahuimanu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 34 sec
Reputation Power: 0
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;

}

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > cout.setf(ios_base::boolalpha); or Alternative


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway