Home | Notes | Languages | Programs | Homework |
Re: Project #2 |
John Gordon (jogordo3@VT.EDU)
Tue, 2 Oct 2001 23:31:44 -0700
Message-ID: <KOEOJPHAEDKBBMOMNEFDGECBCAAA.jogordo3@vt.edu> Date: Tue, 2 Oct 2001 23:31:44 -0700 From: John Gordon <jogordo3@VT.EDU> Subject: Re: Project #2
let me reiterrate that if the output comes out as a fraction we are to
output blah / blah ...
-----Original Message-----
From: discussion list [mailto:CS3304_91312@listserv.vt.edu]On Behalf Of
Matthew Posid
Sent: Tuesday, October 02, 2001 8:03 PM
To: CS3304_91312@LISTSERV.VT.EDU
Subject: Re: [CS3304_91312] Project #2
if there are no parenthesis, then just follow standard oder of
operations:
1/2/3 would be the same as (1/2)/3, or iconst 1 iconst 2 i div iconst 3
idiv
but since you're given commands, not expressions (like in the last
program), it's not even relevant...if they tell you to div, and it's
possible to div, then you div, otherwise it's an error
at least that's the way i understand the spec
Home | Notes | Languages | Programs | Homework |