Visual Studio- C++ – Simplest Program

#include <iostream>
int main(int argc, char *argv[])
{
std::cout<<”happy programing ! “;
std::cout<<”Are you enjoying?\n”;
system(“PAUSE”);
return 0;
}

For the sake of simplicity you may also write the above code as

#include <iostream>
using namespace std;
void main()
{
cout<<”happy programing ! “;
cout<<”Are you enjoying?\n”;
system(“PAUSE”);
return ;
}

About these ads

About b4blogger
I am a student and a blogger who wants to share my knowledge with the world.

One Response to Visual Studio- C++ – Simplest Program

  1. Pingback: Turbo C++ – Simplest Program « Best Beta Bytes !!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: