Article View: csu.cs.200
Article #356Test input files for Assignment #2
From: Jamie Grier
Date: Sun, 01 Feb 1998 00:00
Date: Sun, 01 Feb 1998 00:00
15 lines
954 bytes
954 bytes
In the test input files for assignment #2 there are some numbers that start with a 0 (012, etc). When you cin these values they are interpreted as octal. For instance if you cin 012 and print it out along with the rest of the values it comes out as 10 decimal... I guess my question is this: Are those values in the files that start with 0 supposed to be considered octals? ---- Jamie Grier, CS student Colorado State University http://www.cs.colostate.edu/~grier
Technical Details
Message-ID:
<34D4AD0D.C07DF0A3@cs.colostate.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 127144,35b0104345faceae,start X-Google-Attributes: gid127144,public From: Jamie Grier <grier@cs.colostate.edu> Subject: Test input files for Assignment #2 Date: 1998/02/01 Message-ID: <34D4AD0D.C07DF0A3@cs.colostate.edu> X-Deja-AN: 321112348 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Colorado State University Mime-Version: 1.0 Newsgroups: csu.cs.200