Best Practices

From CDOT Wiki
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>)