Today i'll teach you how to get input form user
cin>> means input form user, now this input should be store in some where after that we print that input or use some where else
if input is an integer type we can define as int
after that any variable where you save your input like i'll save in a
as int a;
; means end of command
\n means next line
#include<iostream.h>
void main()
{
int a;
cout<<"enter your input";
cin>>a;
cout<<"your entered\n";
cout<<a;
}
Showing posts with label codes. Show all posts
Showing posts with label codes. Show all posts
Sunday, 3 February 2013
Saturday, 2 February 2013
C++ a complete guide
Today i am going to upload all the stuff related to C++ including Slides, project that i made when i was in 3rd semester,small programs,a complete guide for beginners
Hope this will help you in your course, i you found any difficulty please feel free to comment, i will help you :)
here is a link
http://www.mediafire.com/download.php?o73nnaagxunlimy
Best of Luck Engineers
Hope this will help you in your course, i you found any difficulty please feel free to comment, i will help you :)
here is a link
http://www.mediafire.com/download.php?o73nnaagxunlimy
Best of Luck Engineers
Friday, 1 February 2013
Object oriented programming by Robert Lafore
If you wanna learn Object oriented programming in C++ you can download a book by Robert Lafore from a link given below
http://www.mediafire.com/view/?az91nvqu4wa166o
I learnt alot from this book thats why i prefer this book if you wanna learn Programming.This book clears all the concept of c++.
If you found some problem or stuck some where comment your query i will guide you, but you should know about basic in C++.
Simple Message in C++
Today i am going to teach you how to print a simple program in C++
before that i give you intro of some basic commands
- cout<< is used for output
- cin>> is used for input
- "your message" any string is placed in between commas
- main() its a main body to any program where code is written
- #include is a library should be added for input and output from the program
here a simple program to print Hello world as a message
#include<iostream.h>
void main()
{
cout<<"hello worls";
}
Subscribe to:
Posts (Atom)