| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Organizing source code |
From: "Geo"
"John Beckett" wrote
in message news:417ba371.46014415{at}216.144.1.254...
> "Geo" wrote in message
news::
> > cout formatting is easy
>
> Yes, but printf allows me to remember a small number of rules that allow
> me to easily do stuff like show a float with 2 fractional digits,
setprecision(2)
> // Book is a class defined elsewhere.
> Book b("The Selfish Gene", "Richard Dawkins",
"Oxford", 29.95);
> cout << b << newl; // output value of b
Oh, like output forms, ok yes I agree. Should that be newl or endl?
> I would definitely write 4.0 (rather than 4.). I was making the point,
> however, that 4. is valid and is a double, whereas 4 is an int.
Oh, believe me that point has been made to me numerous times now .
Geo.
--- BBBS/NT v4.01 Flag-5
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)SEEN-BY: 633/267 270 5030/786 @PATH: 379/45 1 396/45 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.