3 ms·
C++ can also be simple, if you define beforehand which constructs you will use from the language, and which not. For example, working with std::vector or std:st
by greyman 17y ago
C++ can also be simple, if you define beforehand which constructs you will use from the language, and which not. For example, working with std::vector or std:string is usually much simpler than working with char* buff and pointer arithmetic.
- chc 17y agoBut then you're essentially using C+std::string rather than C++. The reason it's simple is that you're ignoring most of the things that distinguish it from C — and even then it's actually quite a bit more complex in ways that you can't get around (e.g. extern "C").