entropy123 said:
Thanks for the replies. I spent all summer with C and I'm just
starting to learn C++. The idea with the legacy code is to convert it
from C/bison to C++.
Again, why? If you're wanting to learn C++, the best
way imo is to write your C++ programs from scratch.
C and C++ syntax is similar enough, but the behavior
of each is (often subtly) different enough, that what
you're attempting will not only prevent learning,
but cause you to 'learn' things which are not correct.
Most of the SRC files are written in "C" as well
as the driver. I was thinking if the driver is compiled in C++ then I
could start writing additional code in C++ without worry.
What has that to do with the C code?
As I understand the situation, C programs may be compiled as C++, but
generally not the other way around.
Then you don't understand. See Dan's reply.
Inasmuch as the replies involved C++ language I have no clue,
And you should not expect anyone here to have any 'clues'
about C++ either. This group is about C. Some folks here,
including myself, have at least some understanding of C++,
but we don't discuss it here, as I pointed out in my previous
reply. I also referred you to a group where both languages
*are* topical.
but I do
own D&Ds C++ book which I've found excellent at least through the
first 100 easy pages..
I think that's a pretty decent book, although there are others
I consider superior (it's a good idea to have more than one
book about a subject you're learning anyway).
Here's the link to info telling what the topic here is:
http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html
The C++ groups have similar documents, check them out
before posting there, either. You can find these documents
by perusing the posts in those groups. Links to them
are posted periodically, and are contained in the .sigs
of some of the regulars.
-Mike