Category : Files from Magazines
Archive   : CUJ9201.ZIP
Filename : 1001094B

 
Output of file : 1001094B contained in archive : CUJ9201.ZIP

Listing 2

//
// test1.cpp
//
#include
#include "rational.h"

int main()
{
int i;
rational r1 (1, 2); // r1 = 1/2;
rational r2 (3, 5); // r2 = 3/5;

for (i = 0; i < 3; ++i)
{
printf("r1 = ");
r1.put(stdout);
putchar('\n');
printf("r2 = ");
r2.put(stdout);
putchar('\n');
r1 = (r1 + r2) / rational(1, 2);
r2 = r2 * rational(2, 3) + r1;
}
return 0;
}



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9201.ZIP
Filename : 1001094B

  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/