to be able to use iostream in root you have to do this:
root [1] #include <iostream.h>
root [2] cout<<"aap"<<endl
aap
(class ostream)2063294240
root [3]
You can put "#include <iostream.h>" in you logon macro.
Cheers, Fons.
Christopher Conner wrote:
>
> Hello,
>
> How can I use simple C++ input and output in Rint?
>
> I prefer to type:
>
> cout << "This is text" << endl;
>
> as opposed to fprintf.
>
> Thanks,
> Christopher
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910