it in not difficult to learn C++ if you are getting right and useful information .i will try my best to provid you best and easiest way to learn c++.
first of all u have to download a compiler .you can easily download it free by searching from google..type "turbo c++" and then get it downloaded....
lets start our c++...
it is our first program..it is a simple program and the purpose is leaning....
---------------------------------------------------------------------------------------------
# include
#include
void main( )
{
clrscr();
cout<<"this is my first program";
getch();
}
--------------------------------------------------------------------------------------
the output of this program will be as follow:
-----------------------------------------------------------------------------------------
this is my first progarm
------------------------------------------------------------------------------------------
this a simple program in which the #include
in c++ we use CIN to get data and cout to show data..
for cin and cout we must include iostream library.
the second library is conio.h
which is for getch();
when the result is displayed on screen .....due to conio.h it will be displayed as long as u will not enter button...
otherwise it will be suddenly shown and disappeared.......
if u will write any this is inverted commos it will be printed out as it was written............
this is first simple lecture ........see u in next program.......
No comments:
Post a Comment