Article View: rec.games.programmer
Article #134Re: Pascal and C
From: David F. Skoll
Date: Wed, 22 Jul 1992 17:11
Date: Wed, 22 Jul 1992 17:11
28 lines
1036 bytes
1036 bytes
In <1992Jul22.152218.10624@esds.mdc.com> bonney@esds.mdc.com (Greg
Bonney) writes:
>Mike Kienenberger SXMLK@ALASKA, SXMLK@acad3.alaska.edu writes:
>>C++ is an entirely different language.
>Entirely? I think not. Any ANSI C program will still work in C++.
I don't think so. C++ is not a direct superset of ANSI C - there are
a number of small incompatibilities.
Here's a fragment from an ANSI C program which won't work in C++:
typedef struct buddy {
struct buddy *next;
int age;
} friend;
typedef struct room {
struct room *next;
int chairs;
} class;
:-)
--
David F. Skoll
Technical Details
Message-ID:
<dfs.711825115@ro>Path:
arc1-ca.pugleaf.net!sparky!uunet!utcsri!torn!cunews!dfsReferences:
<1992Jul22.152218.10624@esds.mdc.com>Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!torn!cunews!dfs From: dfs@doe.carleton.ca (David F. Skoll) Subject: Re: Pascal and C Message-ID: <dfs.711825115@ro> Sender: news@cunews.carleton.ca (News Administrator) Organization: Dept. of Electronics, Carleton University References: <1992Jul22.152218.10624@esds.mdc.com> Distribution: usa Date: Wed, 22 Jul 1992 17:11:55 GMT Lines: 28