Difference between revisions of "Best Practices"
(→Best Practices for OOP345) |
(→Using Modern C++) |
||
(One intermediate revision by one other user not shown) | |||
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>) |
Latest revision as of 10:33, 17 January 2015
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>)