src/work/athos/lp_old/expression_test.cc
author ladanyi
Tue, 05 Apr 2005 09:08:23 +0000
changeset 1305 c3dc75d4af24
parent 1240 88a2ab6bfc4a
permissions -rw-r--r--
- moved lp_base.h, lp_base.cc, lp_glpk.h, lp_glpk.cc, lp_solver_skeleton.h and
lp_solver_skeleton.cc to src/lemon
- modified the includes
     1 #include <expression.h>
     2 #include <iostream>
     3 #include <string>
     4 
     5 using std::cout;
     6 using std::endl;
     7 using std::string;
     8 using namespace lemon;
     9 
    10 int main() {
    11   Expr<string, double> b;
    12   cout << b << endl;
    13   Expr<string, double> c("f");
    14   cout << c << endl;
    15   Expr<string, double> d=8.0*string("g");
    16   cout << d << endl;
    17   c*=5;
    18   cout << c << endl;
    19   Expr<string, double> e=c;
    20   e+=8.9*9.0*string("l");
    21   cout << e << endl;
    22   cout << c+d << endl;
    23 }