C++ simple "Hello,World" program display
display the hello world in output example.
#Beginner
In turbo c++ compilers
#include<iostream.h>
int main()
{
cout<<"Hello,World";
return 0;
}
In gcc C++ compilers
#include<iostream>
int main()
{
std::cout<<"Hello,World";
return 0;
}
In gcc C++ compilers using namespace std
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello,World";
return 0;
}
Output
Hello,World
Comments
Post a Comment
Any doubt about programming or questions