![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
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.... |
|
|
|
|
|
#2 |
|
Programmer
|
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. ~ read my blog @ My Lucky Rocketship Underpants
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6
![]() |
<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. |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0
![]() |
Hokeyman do you support Arsenal#?
__________________
Don't wound what you can't kill |
|
|
|
|
|
#5 |
|
Programmer
|
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. ~ read my blog @ My Lucky Rocketship Underpants
|
|
|
|
|
|
#6 |
|
Hobbyist Programmer
|
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.... |
|
|
|
|
|
#7 |
|
Programmer
|
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. ~ read my blog @ My Lucky Rocketship Underpants
|
|
|
|
|
|
#8 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
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.
|
|
|
|
|
|
#9 |
|
Hobbyist Programmer
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|