|
-
Aug 22nd, 2002, 12:15 PM
#1
Thread Starter
Fanatic Member
iostream
i have this in my code :
#include <iostream.h>;
but it says there is an error and wont compile, does anyone know why?
-
Aug 22nd, 2002, 01:22 PM
#2
Frenzied Member
You don't need the ; after the >
Also depending on your compiler you don't need the .h for the iostream
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Aug 22nd, 2002, 01:58 PM
#3
Frenzied Member
FWIW:
the ; is considered NULL line and doesn't affect compilers
for example this will compile and run just fine:
Code:
#include <stdio.h> ;
int main(){
int i;;;;
printf("hi there\n");;;;;;;;;
return 0;;;;;;;;;;
}
-
Aug 28th, 2002, 05:27 AM
#4
Basically you should include
<iostream>
on any compiler younger than VC++5.
This means that all elements are wrapped in the std namespace, beware!
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|