Notes

  • C++ basic notes

    Printed version: C++ basic notes 0. Cautions 01. be careful with the ‘single quotes’ and “double quotes” for char and string; 02. do not forget “break” for switch 03. be careful with the “==” in logics 04. be careful not mistakenly use for(;;); and while(); 05. expressions in for loop should be seperated with ; […]


  • C++ OOP notes

    Printed version: C++ OOP notes Note: “poor guy” == “temporary object” 0. Cautions 1.”Automatic 0-initialization” 1. global 2. STL 2.”Where to put keywords?” must only be in function declaration “inside class” 1. override 2. virtual 3. explicit 4. =0 // no definition 5. =default // no definition must be both at declaration and definition 1. const […]