Re: passing arguments

From: Brett Viren <bv_at_bnl.gov>
Date: Tue, 29 Nov 2011 10:02:14 -0500


Thomas Lauf <thl_at_hll.mpg.de> writes:

> Hello Giovanni!
>
> Supposed your ROOT program/macro file looks like this:
> void Test( const Char_t* Text )
> {
> cout << Text << endl;
> }
> Then you can do the following call in the ROOT shell:
> root [] .x Test.C("Hello World" )

Or from the shell prompt:

  root 'Test.C("Hello World" )'

-Brett.

Received on Tue Nov 29 2011 - 16:02:25 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 29 2011 - 17:50:02 CET