COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/marci/lp/expression_test.cc @ 1143:4fb22cfa5759

Last change on this file since 1143:4fb22cfa5759 was 1097:c91e765266d7, checked in by marci, 19 years ago

A proposal or test implementation for linear expression`

File size: 444 bytes
Line 
1#include <expression.h>
2#include <iostream>
3#include <string>
4
5using std::cout;
6using std::endl;
7using std::string;
8using namespace lemon;
9
10int 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}
Note: See TracBrowser for help on using the repository browser.