Article View: csu.cs.200
Article #203Re: #define MAX(), DNM and a working program?
From: Chris Carlson
Date: Wed, 07 Oct 1998 00:00
Date: Wed, 07 Oct 1998 00:00
23 lines
1417 bytes
1417 bytes
Adam Carheden wrote:
> One more too. aCC is still giving the same errors I think, so we're
> supposed to use CC for this assignment still, right?
Yes, aCC still gives the same errors, but in recitation you'll get the
code changes to make Main4.C work. With the changes, your program
should compile with both CC and aCC. However, I think they'd prefer you
use the aCC compiler.
If you haven't been to recitation, here are the changes I made to get
Main4.C to compile with aCC:
1. changed void main() to int main()
2. made the following changes in the sort function:
***In the function declarations***
LISTdata hold,jdata,indexdata;
***In the for loop***
jdata=list.LIST_Get(j);
indexdata=list.LIST_Get(index);
if(strcmp(jdata.name,indexdata.name) > 0)
Hope this helps,
Chris
Technical Details
Message-ID:
<361BC00C.C00C37B0@holly.colostate.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3619BA92.A76AECE5@holly.colostate.edu> <361A3923.E6CA7C51@holly.colostate.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 127144,b0bd8a3d32c829be X-Google-Attributes: gid127144,public From: Chris Carlson <spasm@holly.colostate.edu> Subject: Re: #define MAX(), DNM and a working program? Date: 1998/10/07 Message-ID: <361BC00C.C00C37B0@holly.colostate.edu> X-Deja-AN: 398736648 Content-Transfer-Encoding: 7bit References: <3619BA92.A76AECE5@holly.colostate.edu> <361A3923.E6CA7C51@holly.colostate.edu> Content-Type: text/plain; charset=us-ascii Organization: Colorado State University, Fort Collins, CO 80523 Mime-Version: 1.0 Newsgroups: csu.cs.200