Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
13Activity
0 of .
Results for:
No results containing your search query
P. 1
C++ Notes

C++ Notes

Ratings: (0)|Views: 406 |Likes:
Published by prasenjit1985
It helps to easily understand the c++ language.
It helps to easily understand the c++ language.

More info:

Published by: prasenjit1985 on Jun 04, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

10/06/2012

pdf

text

original

 
Getting Started with C++
What is C++?
Released in 1985, C++ is an object-oriented programming language created by BjarneStroustrup. C++ maintains almost all aspects of the C language, while simplifyingmemory management and adding several features - including a new datatype knownas a class (you will learn more about these later) - to allow object-oriented programming. C++ maintains the features of C which allowed for low-level memoryaccess but also gives the programmer new tools to simplify memory management.
What is C++ used for?
C++ is a powerful general-purpose programming language. It can be used to createsmall programs or large applications. It can be used to make CGI scripts or console-only DOS programs. C++ allows you to create programs to do almost anything youneed to do. The creator of C++,Bjarne Stroustrup, has put together a partial listof  applications written in C++.
What is Object-Oriented Programming?
Object oriented programming is essentially building a program around self-containedcollections of data and code to modify that data; this programming model is incontrast to a model that uses function that act on data scattered throughout a program.Object-oriented programming (or coding, as programming is commonly referred to) isan organizational style, but it helps programmers create reusable code because thecode to do a specific thing is entirely contained within a single section of code, and touse the code to perform tasks - for instance, creating a menu - involves using only asmall number of functions to access the internals of the class. Think of it as a black  box that can be easily carried from place to place, and that performs complex actionssimply at the press of a button: for instance, a microwave lets you heat food for aspecified time limit - say, two minutes - by typing in the time and pressing the heat button. You do not need to know how the microwave operates or why the physicsworks. In the same way that self-contained appliances simplify life for the consumer,object-oriented programming simplifies the transfer of source code from one programto another program by encapsulating it - putting it all in one place.
What do you need to program in C or C++?
In order to make usable programs in C or C++, you will need a compiler. A compiler converts source code - the actual instructions typed by the programmer - into anexecutable file. Numerous compilers are available for C and C++. Listed on thesidebar are several pages with information on specific compilers. For beginners,Bloodshed Dev,which uses a Windows interface, is a free and easy-to-use compiler.
 
How do you learn C++?
 No special knowledge is needed to learn C++, and if you are an independent learner,you can probably learn C++ from online tutorials or from books. There are plenty of free tutorials online, includingthe one on this site- one which requires no prior  programming experience. You can also pick out programming books fromour recommendations. While reading a tutorial or a book, it is often helpful to type - not copy and paste(even if you can!) - the code into the compiler and run it. Typing it yourself will helpyou to get used to the typical typing errors that cause problems and it will force you to pay attention to the details of programming syntax. Typing your program will alsofamiliarize you with the general structure of programs and with the use of commoncommands. After running an example program - and after making certain that youunderstand how it works - you should experiment with it: play with the program andtest your own ideas. By seeing which modifications cause problems and whichsections of the code are most important to the function of the program, you shouldlearn quite a bit about programming.
New!Try ourC++ Beginner to C++ Expertrecommended book series, a six- book set designed to get you maximal information and help take you frombeginner to C++ master.
 
Do I need to know C to learn C++?
 No. C++ is a superset of C; (almost) anything you can do in C, you can do in C++. If you already know C, you will easily adapt to the object-oriented features of C++. If you don't know C, you will have to learn the syntax of C-style languages whilelearning C++, but you shouldn't have any conceptual difficulties.

Activity (13)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
akbisoi1 liked this
akbisoi1 liked this
nikotlea liked this
wwwayne liked this
Puneet liked this
swathir007 liked this
Premkumar liked this
Srikanta21 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->