C language

C++
Analysis
Syntactics Layer
Character Level
symbol
control
Lexical Level
white space
tokens
native tokens
keyword
literal constant
operator
punctuation
foreign tokens
identifier
Grammatical Level
Sentence
namespace declaration
class declaration
function declaration
object declaration
class declaration
function declaration
object declaration
function declaration
class declaration
object declaration
execution
expression
object declaration
trivia
Declaration vs Definition
Definition is declaration
Both can be called declaration
Initialization vs Assignment
Initialization is high recomended
Liabrary
Semantics Layer
Preprocessor
Character mapping
line splicing
first line \
next line
Tokenization
white space
tokens
Preprocessing
#include
The #include statement invokes translation
starting with the preceding three translation
steps on any included text.
#define
#ifdef
#progma
Character set mapping
execution character set
For Microsoft C and C++, both the source
and the execution character sets are
ASCII.
String concatenation
"String " "concatenation"
"String concatenation"
Compiler
Understanding Declaration Is Critical
Namespace
divide global space into work space like
desktop and different namespaces like
drawers.
Class & Object
Class
member
data
static
private protected public
function
static
private protected public
default
constructor
copy constructor
copy assignment
destructor
virtual
pure virtual
friendship
function
class
inheritance
single inheritance
multiple inheritance
Polymorphism
one class pointer
different functions
virtual function
Object
Function
executions and expressions are routine
Linker
Synthesis
Pragmatics
Style
Google C++ Style Guide
Resources
C++ Now
C++ Language Tutorial
MSDN C++
Inside the C++ Object Model
Google C++ Style Guide
IBM C++
47