#include<iostream.h> //header file for basic input and output functions
void main() //main function
{
cout<<"Hello world"<<endl; //prints out "Hello world" and endl clears the stream
}
- Please use code tags when posting code ().
- #include<iostream.h> is decprecated.
- void main() is incorrect for a hosted implementation.
Reputation Points: 2780
Solved Threads: 312
long time no c
Offline 4,790 posts
since Apr 2004