Best Practices

From CDOT Wiki
Revision as of 09:33, 17 January 2015 by Chris Szalwinski (talk | contribs) (Using Modern C++)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>)