"Big-Goofy" <va*****@hotmail.comwrote in message
news:Vc********************@giganews.com...
>i would like someone with experience to answer my question ! C or
C++ and why? Which one is stronger ? The criteria are yours!
Thanks in advance guys.
I was going to say for simple programs I write C code not C++, but then I
realized that's a lie becuase I always use std::cout instead of printf. I
always use std::cin instead of gets, etc...
To me, even for straight C code, the stl gives me so much added ease of
programming over the old C counterparts that I would only use a C compiler
if I didn't have a C++ compiler.
std::vectors and std::strings have made my life so much easier, as has the
rest of the standard template library. Other than that, when I start
thinking of solutions, I now think of C++ solutions rather than C solutions,
I.E. a vector of a class with vectors, other than a 2d array. It used to be
that it took me 5x as long to do something in C++ than in C because I had to
think about the C++ language itself. Now that OOPs is also second nature, I
write C++ code faster than C code because usually the solutions are simpler.