Linked by David Adams on Sat 11th Oct 2008 16:48 UTC, submitted by IndigoJo
Thread beginning with comment 333428
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[3]: C++ using the STL, SQLite, and Poco is rich
by pcunite on Sun 12th Oct 2008 21:11
in reply to "RE[2]: C++ using the STL, SQLite, and Poco is rich"
What about:
std::vector<std::string> Text;
std::vector<std::string> Text;
Yes that would allow for multiple Text types quite simply. Gains in STL will help performance. Of course one could use their own custom vector class. I show this to illustrate how easy C++ is. I use a similar class design to handle a complex object that has many forms of recursiveness in it. Using SQLite, and Borland's VCL has made programming the windows platform child's play. I plan to replace the VCL with QT or wxWidgets at a later date if needed.






Member since:
2005-11-20
Problems will start if there is anything else than single Color and Text attributes. What about:
class Paper
{
private:
std::vector<std::string> Text;
};
and the existing code will still work, but will be much slower than Java.
But that is not a problem of C++ core language, but STL...