Explaination:Code:#include <iostream.h> int main() { //This prints "Hello World" and <<endl makes a new line cout<<"Hello World"<<endl; return 0; }
"#include <iostream.h>" - This is the header for cout/cin, in other words we include iostream.h so we can use the functions cout<<, and cin>>.
"int main()" - this is where our program actually starts.
"cout<<"Hello World"<<endl;" - This is what actually prints the text to the screen.
Just a simple example !




Reply With Quote