12
C++ TRAINING IN AMBALA BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph. No.: 9729666670, 0171-400067 E-mail ID: [email protected]

C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER

Embed Size (px)

Citation preview

Page 1: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER

C++ TRAINING IN AMBALA

BATRA COMPUTER CENTRE

Website: www.batracomputercentre.com Ph. No.: 9729666670, 0171-4000670

E-mail ID: [email protected]

Page 2: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER

INTRODUCATION TO C++

A C++ program is a collection of commands, which tell the computer to do "something". This collection of commands is usually called source code,  or just code. Commands are either "functions" or "keywords". Keywords are a basic building block of the language, while functions are, in fact, usually written in terms of simpler functions--you'll see this in our very first program, below. (Confused? Think of it a bit like an outline for a book; the outline might show every chapter in the book; each chapter might have its own outline, composed of sections. Each section might have its own outline, or it

might have all of the details written up.)Thankfully, C++ provides a great many common functions and keywords that you can use.  But how does a program actually start? Every program in C++ has one function, always named main, that is always called when your program first executes. From main, you can also call other functions whether they are written by us or, as mentioned earlier, provided by the compiler.

Page 3: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER

HISTORY

C++ as the name implies, is essentially based on the C-programming language.

The C programming language was developed in 1970’s at Bell Laboratories by Dennis Ritchie.

C++ began in 1979 with the first commercialization in 1985.C++ is essentially C taken to the next level, i . e .,C++

supports all C commands and also has many additions. Hence C++ is a super set of the C programming language.

Though there are different improvement the most obvious difference b/t C and C++ is, C++ Supports object orientation.

Page 4: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER

DEFINITION OF C++

C++ is an object oriented programming (OOP) language, developed by Bjarne Stroustrup, and is an extension of C language. It is therefore possible to code C++ in a "C style" or "object-oriented style."

Page 5: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
Page 6: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER

USE OF C++ PROGRAMMING

C++ is a powerful general-purpose programming language. It can be used to create small 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 you need to do.

Page 7: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER

ADVANTAGES OF C++

Integrated with programming language.

Automatic method storage (When Available)

User Define type. Complex data readily processed Automatic persistent object IDs Single level memory

Page 8: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER

DISADVANTAGES OF C++

Requires object-oriented programming Little existing data in object form Nonexistent (or poor) query and

reporting tools. Limited concurrency control &

transaction management. Unproven performance Substantial change and learning

required.

Page 9: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER

DIFFERENCE B/T C & C++

C is procedural language. No virtual functions are present in C In C, Polymorphism is not possible. Operator overloading is not possible in C. Top Down approach is used in program

Design. No name space Feature is present in C

language. Multiple Declaration of global variables are

allowed. In C, we can call main() function through

other function. No inheritance is possible in C

C++ is non procedural language i.e. object Oriented language. The concept of virtual Functions are used in C++ The concepts of Polymorphism is used in C++. Polymorphism is the most important feature of OOPS. Operator overloading is one of the greatest Feature of C++ Bottom up approach adopted in program Design. Namespace feature is present in C++ for avoiding Name collision. Multiple Declaration of global variables are not allowed. In C++, We cannot call main() function through other function.

C Language C++ Language

Page 10: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
Page 11: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER

CONTACT US

Address: 15 SCO, Dayal Bagh, Near Hanuman Mandir, Ambala Cantt-133001 HARYANAPh. No.: 9729666670, 0171-4000670E-mail ID: [email protected]

Website: www.batracomputercoachingcentre.com

Page 12: C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER