Open main menu

CDOT Wiki β

Best Practices

Revision as of 10:33, 17 January 2015 by Chris Szalwinski (talk | contribs) (Using Modern C++)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using Modern C++

When using Modern C++ (C++ 11 and beyond), some of the best practices are given here:


  • Use std::vector instead of a dynamic array (#include <vector>)
  • Use std::string instead of char* arrays (#include <string>)