DM> If you're having problems in C++, come on in and ask.
DM> For questions in C, next door is the C_ECHO (maybe not
DM> on your BBS), and you're invited to ask there.
RP> Yeah, I think it is. I'll have to tag it as
RP> well. Keep forgetting to. BTW - could you enlighten
RP> me? What is the difference between C and C++? I guess
RP> just because I use a C++ compiler doesnt necessarily
RP> mean I write C++ programs, does it?
Right. C and C++ are so close in general grammar that most C++ compilers
handle C as well. In fact, by and large, valid C programs are valid C++
programs. (There are notable exceptions, enough to invalidate this statement
for very large programs.)
I guess that, as far as this echo is concerned, a C++ program is a program
that uses at least one C++ feature above and beyond that which C provides.
However, for the basics of C, we generally direct users to the larger C_ECHO
(larger in that most who read C_PLUSPLUS also read C_ECHO, but not
necessarily so in the reverse, many people only read C_ECHO) where there is
obviously more help available.
Specifically, however, C++ is an almost Object Oriented language, whereas C
is a procedural one. (For the pedantics, you can write OO in C, and you can
write procedural in C++, but that goes fairly much against the grain in
either...) If you are writing one version in QBasic, and the other in either
C/C++, it's probably just C.
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)
|