- basic prog construction in c++
This prog is the first one for the beginners of c++ .its like hello world prog
from this prog the c++ bsic tutorial is start don't miss these for learning the c++ coading
thanks for your previous support and stay tunned.
- Code:-
#include<iostream.h>
void main()
{
cout<<"welcome to our blog spot";
}
- expln of code:-
- #include<iostream.h> this is header file includes the library reqired for prog.
- the iostream stands for input output stream.
- void main( ) this is the main function its alsocalles as main ethod in other oop langs we will talk about thus in further sessions.
- cout<< the cout<< is used for printing something like we use printf in c++. the double coutes for the non declare elements but wanted to get printed on screen then this is used.
This is all about the the todays session you can ask me questions in comment section and also can suggest anything in coments below thnk you and stay tuned to learn whole c++ and other langd and for intrestiong projects.
also attach your op in comments.
0 Comments