Who can help me be the best progrmmer of all times? Please send short notes so I can read and understand c++, my first programming language!!!!
If you knew C language, it would be easy for you!!! BASIC FORMAT for a c++ program: #include<iostream.h> main() { body of the program } Body of the program consists of Valid C++ statements terminated by a ; (eg.) Program to add 2 nos. #include<iostream.h> main() { int a,b,c; cout<<"ENTER values for a and b \n"; cin>>a>>b; c=a+b; cout<<"The sum of a and b is : \t"; cout<<a<<b; } cin is used for getting values from the user through an input device like keyboard. cout is used for displaying the values through an output device like monitor iostream.h is a header file through which you can access cin,cout and other members like these. Computer can understand only Binary language consisting of 1 and 0. Programming languages were invented only for our comfort. Computer can't understand programming language So, Compiler is the one which executes the program code which you type and converts into object code -computer understandable language. If errors any, the compiler will report it to you (You will know this if you have a Borland C++ version) Function is where you want your processes to take place(here addition of 2 numbers) main() is an important part of the program-program execution starts with main and ends with main.No program can be written without a main() function. HOPE THIS WAS USEFUL!!!
QUOTE Can I get a copy of the suggested C++ method? My Email Address is :"ballubhai37@gmail.com"UNQUOTE Thanks in advance (b.n.rohit)