Hi rooters, I would like to compile and execute a macro which has one parameter set by the user. How can I do that? Example: -------- Below is a very simple macro test.cc I can run in ROOT with the command: .x test.cc++ How do I change the syntax of the ROOT instruction and of the macro to allow the user to set the value of the variable toto interactively ? Thanks in advance, Nicolas ----------------------------------- Macro test.cc ----------------------------------- #ifndef __CINT__ #include <stdlib.h> #include <stdio.h> int test(); int main() { return test(); } #endif int test() { double toto = 2.; printf( "toto = %g\n", toto ); return( 0 ); }
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET