Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 12th, 2005, 12:11 PM   #1
Cipher
Hobbyist Programmer
 
Cipher's Avatar
 
Join Date: Feb 2005
Location: /home/cipher
Posts: 123
Rep Power: 4 Cipher is on a distinguished road
Send a message via AIM to Cipher Send a message via MSN to Cipher
Cout<< Problem

I am just learning C++. I literally(sp?) started just 5 mins. ago. What I need to know is if all headers in the C++ Libs. Support the COUT.

You know..like <iostream.h> and stuff like that.
__________________
And there was much rejoicing... Yay....
Cipher is offline   Reply With Quote
Old Feb 12th, 2005, 12:17 PM   #2
Hockeyman
Programmer
 
Hockeyman's Avatar
 
Join Date: Jan 2005
Location: Vancouver, Canada
Posts: 60
Rep Power: 4 Hockeyman is on a distinguished road
Send a message via MSN to Hockeyman
If I understand your question, then no - COUT is in <iostream.h> so you have to #include it if you want to use that method...if you include other .h files but not iostream.h, cout won't work.
__________________
~ You know, Hobbes, some days even my lucky rocketship underpants don't help. ~

Hockeyman is offline   Reply With Quote
Old Feb 12th, 2005, 12:59 PM   #3
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
Wink

<WTF!?!...drunk>
uh...what the hell, yes, try your iostream.h libraries.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Feb 12th, 2005, 1:54 PM   #4
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
Hokeyman do you support Arsenal#?
__________________
Don't wound what you can't kill
Ade is offline   Reply With Quote
Old Feb 12th, 2005, 2:08 PM   #5
Hockeyman
Programmer
 
Hockeyman's Avatar
 
Join Date: Jan 2005
Location: Vancouver, Canada
Posts: 60
Rep Power: 4 Hockeyman is on a distinguished road
Send a message via MSN to Hockeyman
Ade - not quite as fanatically as a true Londoner, but pretty close
Downside of living in Canada is that premiership games are only on very early on Saturday morning, and only rarely teams that I want to see...
__________________
~ You know, Hobbes, some days even my lucky rocketship underpants don't help. ~

Hockeyman is offline   Reply With Quote
Old Feb 12th, 2005, 2:12 PM   #6
Cipher
Hobbyist Programmer
 
Cipher's Avatar
 
Join Date: Feb 2005
Location: /home/cipher
Posts: 123
Rep Power: 4 Cipher is on a distinguished road
Send a message via AIM to Cipher Send a message via MSN to Cipher
Well if I don't use <Iostream.h> for cout. What other Output method, function, whatever, you know like does the other headers have a different output source such as teh screen and if so what is it?
__________________
And there was much rejoicing... Yay....
Cipher is offline   Reply With Quote
Old Feb 12th, 2005, 2:34 PM   #7
Hockeyman
Programmer
 
Hockeyman's Avatar
 
Join Date: Jan 2005
Location: Vancouver, Canada
Posts: 60
Rep Power: 4 Hockeyman is on a distinguished road
Send a message via MSN to Hockeyman
I guess you could use <stdio.h> and use printf(), but why would you want to?
Hell...if you really are opposed to <iostream.h> you can write your own version of cout and cin and use those instead.
__________________
~ You know, Hobbes, some days even my lucky rocketship underpants don't help. ~

Hockeyman is offline   Reply With Quote
Old Feb 13th, 2005, 1:49 PM   #8
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

Stick to cout and upgrade to iostream. Now you are part of the C++ crowd! The only thing is that iostream bloats the exe. So if you don't use too many instances of cout or cin, you can include cstdio and use the old C workhorses and cut your bloated exe by a factor of ten.
Dietrich is offline   Reply With Quote
Old Feb 14th, 2005, 2:44 AM   #9
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
Hockey - I live very near the Arsenal stadium Highbury and have supported them for nearly 20 years!!
__________________
Don't wound what you can't kill
Ade is offline   Reply With Quote
Old Feb 14th, 2005, 6:04 AM   #10
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Woo! There's three of us! Now all we need to do is find a Chelsea fan and give him a good beating... :p
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:56 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC