src/work/athos/lp_old/expression_test.cc
author athos
Thu, 07 Apr 2005 10:19:10 +0000
changeset 1315 c91ae3600eea
parent 1240 88a2ab6bfc4a
permissions -rw-r--r--
A sample file.
marci@1097
     1
#include <expression.h>
marci@1097
     2
#include <iostream>
marci@1097
     3
#include <string>
marci@1097
     4
marci@1097
     5
using std::cout;
marci@1097
     6
using std::endl;
marci@1097
     7
using std::string;
marci@1097
     8
using namespace lemon;
marci@1097
     9
marci@1097
    10
int main() {
marci@1097
    11
  Expr<string, double> b;
marci@1097
    12
  cout << b << endl;
marci@1097
    13
  Expr<string, double> c("f");
marci@1097
    14
  cout << c << endl;
marci@1097
    15
  Expr<string, double> d=8.0*string("g");
marci@1097
    16
  cout << d << endl;
marci@1097
    17
  c*=5;
marci@1097
    18
  cout << c << endl;
marci@1097
    19
  Expr<string, double> e=c;
marci@1097
    20
  e+=8.9*9.0*string("l");
marci@1097
    21
  cout << e << endl;
marci@1097
    22
  cout << c+d << endl;
marci@1097
    23
}