i have this in my code :
#include <iostream.h>;
but it says there is an error and wont compile, does anyone know why?
Printable View
i have this in my code :
#include <iostream.h>;
but it says there is an error and wont compile, does anyone know why?
You don't need the ; after the >
Also depending on your compiler you don't need the .h for the iostream
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;;;;;;;;;;
}
Basically you should include
<iostream>
on any compiler younger than VC++5.
This means that all elements are wrapped in the std namespace, beware!