So, explain to me why every C++ program always has its own String implementation?
> long as performance is not a priority.
Then C++ is a disastrous choice. Almost anything is better.
So, explain to me why every C++ program always has its own String implementation?
> long as performance is not a priority.
Then C++ is a disastrous choice. Almost anything is better.
i have no idea where you are reading about c++, but every c++ program i have read or written in the past 20 years or so does
#include <string>
std::string greet = "hello, world";
the full-stop in front of the hash is something with HN, not me or c++, and only seems to show up when editing.
*saner :)
>Then C++ is a disastrous choice. Almost anything is better.
True, C and C++ are most of the time not the right tool for the job nowadays. But, if it's just a project that you're working on in your free time, it wouldn't harm to write it in your favorite language. I write in C++ a lot even if I could do the same thing much easier in other languages.