|
basic c++ language
basic types
int’sunsigned’sfloat & doublearrays pointers control structures
if/elsewhiledo/whilefor
strings (std::string) "c" strings (nul-terminated arrays of characters) functions separate compilation of source files (.h .cpp) pointers and references use of constdynamic memory ( new, new[], delete, delete[])
classes
access control
public, protected, privateaccessors ("getters" and "setters") friend classes and functions constructors
default and copy constructors.
trivial default and copy constructors. initialization lists. explicit constructors.the difference between construction and assignment. member objects and functions
const member functionsmutable members
inheritance
general mechanism
base class constructors in initialization lists. polymorphism
virtual functions
overloading pure virtual functions chaining back to base class functions |
operator overloading
members e.g.
assignment (
non-members e.g.
operator=)indexing ( operator[])
ostream &operator<<(ostream &, const T &)
exceptions
throwtry/catchcatch(...)throw;throw clause on functions. std::exception
base class for all standard exceptions.
const char *what() const throw().
templates
class templates
type parameters.
integral template parameters. class template instantiation. function templates
parametric polymorphism.
template parameter inference. instantiate to make a function. explicit instantiation. standard library
at least some familiarity with fundamentals:
vectorlistiostreams (e.g. ifstream, ofstream)iomanipulators (e.g. setw, setfill)
|