Article View: net.lang.c++
Article #291C++ doesn't output unsigned correctly.
From: Stephen J. Muir
Date: Mon, 18 Aug 1986 01:33
Date: Mon, 18 Aug 1986 01:33
15 lines
948 bytes
948 bytes
This program incorrectly prints minus one:
# include <stream.h>
main ()
{ unsigned x = -1;
cout << x << "\n";
}
C++ version 1.1, BSD 4.2, DEC VAX-11/750.
--
EMAIL: stephen@comp.lancs.ac.uk | Post: University of Lancaster,
UUCP: ...!mcvax!ukc!dcl-cs!stephen | Department of Computing,
Phone: +44 524 65201 Ext. 4120 | Bailrigg, Lancaster, UK.
Project:Alvey ECLIPSE Distribution | LA1 4YR
Technical Details
Message-ID:
<376@comp.lancs.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!ukc!dcl-cs!stephenShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!ukc!dcl-cs!stephen From: stephen@comp.lancs.ac.uk (Stephen J. Muir) Newsgroups: net.lang.c++ Subject: C++ doesn't output unsigned correctly. Message-ID: <376@comp.lancs.ac.uk> Date: Sun, 17-Aug-86 21:33:33 EDT Article-I.D.: comp.376 Posted: Sun Aug 17 21:33:33 1986 Date-Received: Wed, 20-Aug-86 23:31:17 EDT Reply-To: stephen@comp.lancs.ac.uk (Stephen J. Muir) Organization: Department of Computing at Lancaster University, UK. Lines: 15