how to write a c++ program

How to Write a program in C++

how to write a c++ program

First program in a C++

//My first C++ program
#include<iostream.h>
void main()
cout<<“Enter your namen”;
cin>>name;
cout<<“welcome”<<name<<“n”;
}
getch();

Describing of a program

//My first C++ program———–is a comment compiler not executed comments. comments are
only use in program for understand a program quickly.

#include<iostream.h>
# sign statement is represent directrites for the preprocessor, these type of statements are
proceed before compile.

#include represent for insert header file like iostream.h

Void Main() or int main()
from here main program is starting.

Memory boost tips

Leave a Reply

Your email address will not be published. Required fields are marked *