Re:

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 14 Aug 2007 16:27:30 +0200


Example:
root [0] gROOT->ProcessLine("int a=1;int b=a+9;") (Long_t)(0)
root [1] b
(int)10

Rene Brun

Andrea Massironi wrote:
> Dear Rooters,
> Is it possible to execute a Cint script contained in a string?
> I'd like to do something like this:
>
> std::string instruction = "int a=1";
>
> and then something to "execute instruction"
>
>
> Thanksroot [0] gROOT->ProcessLine("int a=1;int b=a+9;")
> (Long_t)(0)
> root [1] b
> (int)10
>
>
>
Received on Tue Aug 14 2007 - 16:27:36 CEST

This archive was generated by hypermail 2.2.0 : Tue Aug 14 2007 - 17:50:02 CEST