-------------------------------------------------- - C Review ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ------ ◎ C program will call the class copy constructor PUBLIC CLASS A {};
Public Class B {B (A & A) {COUT << "Call A";}};
FUNC (B b) {}
Main () {a a; func (a); // now Will Generate B Class Object and call copy constructor} ◎ You can use Explicit to prevent him from automatically converting functions ◎ Virtual inheritance prevents multiple inheritance, ◎ Quote Binding dead, no It is empty, and the pointer can point anywhere, any object ◎ The member function defined in the class definition will program the intra-line function inline, with a space change time ◎ Use the abstract type to program, for the general template ◎ function returned The pointer needs to release the memory in another assigned pointer, otherwise the memory leak ◎ Structure defaults to public, the class default is the private ◎ constructor, the assignment function overload, the operator overload, the custom function overload, the destructor cannot Overload ◎ Using generic programming can make debugging difficulty ◎ The callback function needs to be defined becoming static ◎ Abstract class is not generating instance ◎ There is a virtual function to write the destructive function to a virtual function ◎ lib is compiled, DLL It is when it is running, the Dynamic Board FUNC (A & A) {a.func ()} A, C Class, where AB contains the FUNC function, cannot be determined which class object is called
◎ The destructor can be defined as a virtual function ◎ socket under Linux and Windows Socket need to pay attention, byte sequence, the two is reversible ◎ Truncate delete record can't roll back, truncate = delete commit ◎ PostMessage Immediately, SendMessage also needs to process then then return ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎