2 ms·
But 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 —
by chc 17y ago
But 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").