On Sun, 2005-05-06 at 05:14 -0500, Jan Depner wrote:
On Sun, 2005-06-05 at 08:08, fons adriaensen wrote:
My aproach to C++ is very simple: I use it as
'C with classes'. No streams, no
STL, no other nonsense. Gives me the best of both worlds - clean objects and
low level.
Good answer. I've often wondered why anyone would use vectors.
Because they dynamically resize, easily, and are generally much simpler
to work with, perhaps? :)
I always use C arrays in C++. Vectors are slower than
molasses in January
(or June for those in the southern half ;-)
FWIW, accessing elements in a vector with [] shouldn't be any slower
than doing the same on a C array.
Not that C++ doesn't still suck..
-DR-