From 89eeeff54f0b3ce30be5b046fc3899fdeb5ebb40 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 17 Feb 2007 16:31:55 +0000 Subject: Tweaked the stream classes, added an example, and the begining of a formula parser. --- src/tests/formula.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/tests/formula.cpp (limited to 'src/tests') diff --git a/src/tests/formula.cpp b/src/tests/formula.cpp new file mode 100644 index 0000000..599a264 --- /dev/null +++ b/src/tests/formula.cpp @@ -0,0 +1,13 @@ +#include "formula.h" + +int main( int argc, char *argv[] ) +{ + if( argc < 2 ) return 0; + + Formula f; + double dOut = f.run( argv[1] ); + printf("Final: %f\n", dOut ); + + return 0; +} + -- cgit v1.2.3