Lecture 2
LECTURE 2:
Basic facilities
Kurt Nørmark
Department of Computer Science, Aalborg University
Title page
Abstract
References from this lecture
Exercises in this lecture
Source programs in this lecture
Page 1
Basic facilities
Page 22
Type conversion - Grand Overview
Page 2
Fundamental types i C++
Page 23
Implicit type conversions
Page 3
Booleans
Page 24
Explicit type conversion
Page 4
Structs in C++
Page 25
Function Overloading
Page 5
Declarations and definitions
Page 26
Function Overloading - more detailed rules
Page 6
The structure of a declaration
Page 27
Function Overloading - Examples
Page 7
Declaring several names together
Page 28
Vectors in C++
Page 8
Declarations as statements - declarations in conditions
Page 29
Vectors - examples
Page 9
Constants
Page 30
The free store
Page 10
The general notation of objects in C++
Page 31
Input and output in C++
Page 11
Lvalues
Page 32
Overloaded operators and IO
Page 12
C-style strings
Page 33
Standard streams
Page 13
C++ style strings
Page 34
Stream State
Page 14
Strings - examples
Page 35
Manipulators
Page 15
References
Page 36
More manipulators
Page 16
Rules for references
Page 37
Logical program organization
Page 17
References - Examples
Page 38
More namespaces
Page 18
Constant References
Page 39
Physical program organization
Page 19
References versus Pointers
Page 40
Example of program organization
Page 20
Parameter passing in C++
Page 41
The standard library namespace
Page 21
Value return
Page 42
Point Exercise - C++ versus C#
Generated: Tuesday March 26, 2013, 13:03:15