Best Practices

From CDOT Wiki
Revision as of 12:41, 5 December 2014 by Mark (talk | contribs) (Best Practices with Modern C++)
Jump to: navigation, search

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>