Changeset e2ca88 in git for libfac/test.cc


Ignore:
Timestamp:
May 16, 2006, 4:46:50 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
Children:
55abfc3008e047e8f26beaeb76b5bab66cfe8288
Parents:
dbcf42a937f51948f4de74902429b68c1b54592b
Message:
*hannes: gcc 4.1 fixes


git-svn-id: file:///usr/local/Singular/svn/trunk@9142 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfac/test.cc

    rdbcf42a re2ca88  
    1 //static char rcsid[] = "$Id: test.cc,v 1.3 1997-09-12 07:19:34 Singular Exp $";
     1//static char rcsid[] = "$Id: test.cc,v 1.4 2006-05-16 14:46:48 Singular Exp $";
    22///////////////////////////////////////////////////////////////////////////////
    33// Factor - Includes
    44#include "factor.h"
     5#ifdef HAVE_IOSTREAM
     6#include <iostream>
     7#define CERR std::cerr
     8#define COUT std::cout
     9#define CIN std::cin
     10#elif defined(HAVE_IOSTREAM_H)
     11#include <iostream.h>
     12#define CERR cerr
     13#define COUT cout
     14#define CIN cin
     15#endif
     16
    517
    618
     
    2133    CFFactor copy;
    2234
    23 cout << libfac_name  <<", Version " << libfac_version << endl;
    24 //    cout << " Characteristic = ";
    25     cin >> charac;
     35COUT << libfac_name  <<", Version " << libfac_version << "\n";
     36//    COUT << " Characteristic = ";
     37    CIN >> charac;
    2638    setCharacteristic(charac);
    2739    On(SW_SYMMETRIC_FF);
     
    3547//
    3648//////////////////////////////////////////////////////////////
    37 //    cout << " f = ";
    38     cin >> f;
    39     cout << f  << " mod " << charac << " = " ;
     49//    COUT << " f = ";
     50    CIN >> f;
     51    COUT << f  << " mod " << charac << " = " ;
    4052    Factorlist= Factorize( f,0 );
    41      cout << Factorlist ;//<< endl;
     53     COUT << Factorlist ;//<< "\n";
    4254// Ueberpruefen:
    4355    g=1;
     
    5062    }
    5163    if ( (f-g) != f.genZero() ){
    52         cerr << "\nList and f differ: f= " << f << "  g= " << g << endl;
     64        CERR << "\nList and f differ: f= " << f << "  g= " << g << "\n";
    5365    }
    5466}
Note: See TracChangeset for help on using the changeset viewer.