answersLogoWhite

0

  1. Using the assignment operator (=) instead of the equality operator (==).
  2. Failing to terminate a class declaration with a semi-colon (;).
  3. Using C-style code (e.g., malloc/free) instead of sticking to C++ principals (e.g., new/delete). If you want to write C-style code, use C, not C++.
  4. Ignoring object lifetime (dangling pointers or references).
User Avatar

Wiki User

12y ago

What else can I help you with?