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
5Activity
0 of .
Results for:
No results containing your search query
P. 1
Outline Introduction C++ a Simple Program: Adding

Outline Introduction C++ a Simple Program: Adding

Ratings: (0)|Views: 665|Likes:
Published by deemalhotra73
C++ made easy
C++ made easy

More info:

Categories:Types, School Work
Published by: deemalhotra73 on Feb 06, 2010
Copyright:Attribution Non-commercial

Availability:

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

05/11/2014

pdf

text

original

 
©
2000 Prentice Hall, Inc. All rights reserved.
 
OutlineIntroductionC++A Simple Program: Adding Two IntegersC++ Standard LibraryHeader FilesInline FunctionsReferences and Reference ParametersDefault Arguments and EmptyParameterListsUnary Scope Resolution OperatorFunction Overloading
 
©
2000 Prentice Hall, Inc. All rights reserved.
C++
 
C++
 – Improves on many of C's features – Has object-oriented capabilities
Increases software quality and reusability
 – Developed by Bjarne Stroustrup at Bell Labs
Called "C with classes"C++ (increment operator) - enhanced version of C
 – Superset of C
Can use a C++ compiler to compile C programsGradually evolve the C programs to C++
ANSI C++
 – Final version athttp://www.ansi.org/  – Free, older version athttp://www.cygnus.com/misc/wp/ 
 
©
2000 Prentice Hall, Inc. All rights reserved.
 
File extensions
 – C files:
.c
 – C++ files:
.cpp
(which we use),
.cxx
,
.C
(uppercase)
Differences
 – C++ allows you to "comment out" a line by preceding it with
//
 – For example:
// text to ignore
 <iostream> 
- input/output stream header file – Return types - all functions must declare their return type
C does not require it, but C++ does
 – Variables in C++ can be declared almost anywhere
In C, required to declare variables in a block, before any executablestatements

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
lon_07 liked this
hero12333 liked this
9440297409 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)//-->