Difference between revisions of "Best Practices"
(→Best Practices for OOP345) |
(→Best Practices with Modern C++) |
||
Line 1: | Line 1: | ||
− | = | + | = 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::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 11:41, 5 December 2014
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>