Open main menu

CDOT Wiki β

Best Practices

Revision as of 12:41, 5 December 2014 by Mark (talk | contribs) (Best Practices with Modern C++)

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>