January 01, 2006
Ch: A C/C++ Interpreter for Script Computing
Example 2: Using C Standard Library functions from the command line.
> srand(time(NULL))
> rand()
4497
> rand()
11439
> double add(double a, double b) {double c; return a+b+sin(1.5);}
> double c
> c = add(10.0, 20)
30.9975
|
|
||||||||||||||||||||||||||||
|
|