Mail Archives: djgpp/1999/08/15/05:55:56
Al Morgan wrote:
>
> What are the advantages to using C++, as opposed to C, and vice versa?
Depends on what part of C++ you use. If you despise classes but
kinda dig streams and such, you're still using C++.
If you like classes, you're using C++.
If you really dig classes more than even Java uses, you're using
C++.
If you avoid using classes, streams, and a some nitpicky C++
declarations, you can get away with saying you are coding straight C.
My point is that chances are good that you're using C++ anyway.
As for advantages, well, streams provide a nice method of input
and output (iostream). Classes have some nice things in them. I
don't really know the standard C++ classes because I went from C
and assembly to Java, so...
Basically, C++ just gives you more options.
Chris
- Raw text -