Message-ID: <000f01c03385$4e40a420$a549073e@oemcomputer> From: "john watkins" To: Subject: cxx files Date: Wed, 11 Oct 2000 14:13:46 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0009_01C0338D.77F00D80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C0338D.77F00D80 Content-Type: multipart/alternative; boundary="----=_NextPart_001_000A_01C0338D.77F00D80" ------=_NextPart_001_000A_01C0338D.77F00D80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The attached file (c:\jwcpp\cued1.ccp) is taken from a Cambridge = University tutorial. I have the appropriate files in c:\djgpp\lang\cxx = but am not clear how to compile the attatched file since the normal 'gxx foo.ccp -o foo.exe = -lc' method fails to recognize the file format. JohnWatkins ------=_NextPart_001_000A_01C0338D.77F00D80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
The attached file (c:\jwcpp\cued1.ccp) = is taken=20 from a Cambridge University tutorial. I have the appropriate files in=20 c:\djgpp\lang\cxx but am not clear how
to compile the attatched file since the = normal 'gxx=20 foo.ccp -o foo.exe -lc'
method fails to recognize the file=20 format.
 
JohnWatkins
------=_NextPart_001_000A_01C0338D.77F00D80-- ------=_NextPart_000_0009_01C0338D.77F00D80 Content-Type: application/octet-stream; name="cued1.ccp" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cued1.ccp" #include #include #include int main() { stack S; S.push(1); S.push(2); S.push(3); S.pop(); cout << "Top element is " << S.top() <