This folder contains all my practices from the course named C++ for C Programmers.
##SOME NEW FACTS TO ME (WEEK 1)##
- Int is more precisely than Float type. Usually, machine can represent +/- 2 billion integers, but only can represent at most 6 significant bit for Float type.
srand()initialises random number sequence.static_cast<double>, a more safer conversion of types than(double)[SAFE CAST].endlis not\n, it is a iomanipulator.- Reasons why C++ is better than C: (1) More libraries (2) Type safe (3) Less reliance on preprocessor (4) OO vs imperative.
- DEFINE is textually substitution, should be avoided.
inline void swap(int& i, int& j)- "signature matching algorithm": can use same function name in different declaration.
- "Generics": programming in templates.
###Contacts### Hu Yuhuang (duguyue100)
Email: [email protected]
Address: No.42, North, Flatland.