Starting...
C++ BASICS
Chapter 1. basics
We can discuss c++ from the starting.... you need dev c++ for programming in c++ you can download by clicking download
OK we can start now...here is the basic structure of a c++ program
#include<header file >
void main()
{
statements;
:
}
void main()
{
statements;
:
}
Hello world program
#include<iostream>
void main()
{
//this is a sample program
cout<<"hello world";
}
void main()
{
//this is a sample program
cout<<"hello world";
}
here the line
//this is a sample program will not be compiled by the compiler cuz it is a comment
Cout prints hello world...it is a funtion coming under iostream header file. it prints data in cmd ...copy the code and test it