Click to See Complete Forum and Search --> : iostream
Mushroom Realm
Aug 22nd, 2002, 12:15 PM
i have this in my code :
#include <iostream.h>;
but it says there is an error and wont compile, does anyone know why?
Technocrat
Aug 22nd, 2002, 01:22 PM
You don't need the ; after the >
Also depending on your compiler you don't need the .h for the iostream
jim mcnamara
Aug 22nd, 2002, 01:58 PM
FWIW:
the ; is considered NULL line and doesn't affect compilers
for example this will compile and run just fine:
#include <stdio.h> ;
int main(){
int i;;;;
printf("hi there\n");;;;;;;;;
return 0;;;;;;;;;;
}
CornedBee
Aug 28th, 2002, 05:27 AM
Basically you should include
<iostream>
on any compiler younger than VC++5.
This means that all elements are wrapped in the std namespace, beware!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.