delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/11/09:15:09

Message-ID: <000f01c03385$4e40a420$a549073e@oemcomputer>
From: "john watkins" <john_watkins AT talk21 DOT com>
To: <djgpp AT delorie DOT com>
Subject: cxx files
Date: Wed, 11 Oct 2000 14:13:46 +0100
MIME-Version: 1.0
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>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</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>to compile the attatched file since the =
normal 'gxx=20
foo.ccp -o foo.exe -lc'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>method fails to recognize the file=20
format.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>JohnWatkins</FONT></DIV></BODY></HTML>

------=_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 <deque>
#include <stack>
#include <iostream.h>
int main() {
  stack<int> S;
  S.push(1);
  S.push(2);
  S.push(3);
  S.pop();
  cout << "Top element is " << S.top() <<endl;

  S.pop();
  S.pop();
  cout << "Number of elements is now " S.size() <<endl;
};

------=_NextPart_000_0009_01C0338D.77F00D80--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019