Category : C Source Code
Archive   : BCPPTECH.ZIP
Filename : TI640.ASC

 
Output of file : TI640.ASC contained in archive : BCPPTECH.ZIP







PRODUCT : C++ NUMBER : 640
VERSION : All
OS : PC DOS
DATE : February 25, 1992 PAGE : 1/1

TITLE : Precision and Decimal Places in iostreams




Given a real variable x (either float or double) with value 2.0
and also given a real variable PI = 3.1415926...

---- OUTPUT ---- ------------- STATEMENT ---------------

"x == 2" cout<<"x == "<
"x==2.00" cout< < <<"x == "<
"x == "02.0" cout< < <<"x == "<
"pi == 3.14" cout<
































  3 Responses to “Category : C Source Code
Archive   : BCPPTECH.ZIP
Filename : TI640.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/