Main Page   Compound List   File List   Compound Members   File Members   Examples  

testbio.cpp

A test program for input-output routines of bigarith module.

//********************************************************************
// testbio.cpp     Big Arith input-output routines test
//
//N.Yu.Zolotykh 1999
//University of Nizhni Novgorod, Russia
//********************************************************************


#include <iostream.h>
#if defined(__BORLANDC__) && !defined(__WIN32__)
#  include <alloc.h>
#endif
#include <ctype.h>
#include "bigarith.h"

int main()
{
#if defined(__BORLANDC__) && !defined(__WIN32__)
long memavail = coreleft();
#endif

{

cout << "Input-output BigArith test\n"  
  << "Enter any big_int number \n"      
  << "For exit enter 0 \n"; 

while (1)
{
  big_int a;
  cin >> a;
  cout << a <<"\n";
  if (a == 0) break;
}


}
#if defined(__BORLANDC__) && !defined(__WIN32__)
memavail = coreleft() - memavail;
cout << " mem = " << memavail << endl;
#endif

return 0;
}

Generated at Fri Oct 19 20:00:24 2001 for Arageli by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001