| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Organizing source code |
From: "Paul Ranson"
That's a compile time example, the arithmetic got done before any code was
generated, OTOH,
double a, b ;
a = 15 ;
b = 2 ;
cout << a/b << "\n" ;
will print 7.5. Probably also done at compile time in this trivial case.
Paul
"Geo" wrote in message
news:417a6ed0$1{at}w3.nls.net...
> double a, b;
>
> a=15/2;
> b=15.0/2;
>
> cout << a << " " << b << "\n";
>
> output is 7 7.5
>
> Geo. (seems like a significant difference to me )
--- 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™.