author | alpar |
Mon, 21 Feb 2005 14:59:12 +0000 | |
changeset 1164 | 80bb73097736 |
permissions | -rw-r--r-- |
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 |
} |