Missing function header ( old-style formal list?)

Hey ,
I can't find my error here .. can anyone help ?


#include <iostream.h>
{
cout << "hello!" << endl ;
int x ;

cin >> x ;
return 0;
}



Why do i got that error above .. ?
Standard headers don't end with .h.

 
#include <iostream> 
add

int main()

before

{
Topic archived. No new replies allowed.