Difference between revisions of "Best Practices"

From CDOT Wiki
Jump to: navigation, search
(Created page with '= Best Practices for OOP345 = * Use std::vector instead of a dynamic array (#include <vector>) * Use std::string instead of char* arrays (#include <string>')
 
(Best Practices for OOP345)
Line 1: Line 1:
= Best Practices for OOP345 =
+
= Best Practices with Modern C++ =
  
 
* Use std::vector instead of a dynamic array (#include <vector>)
 
* Use std::vector instead of a dynamic array (#include <vector>)
  
 
* Use std::string instead of char* arrays (#include <string>
 
* Use std::string instead of char* arrays (#include <string>

Revision as of 12:36, 5 December 2014

Best Practices with Modern C++

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