Re: How can I use C++ style io (Cin and Cout) in Rint?

Fons Rademakers (Fons.Rademakers@cern.ch)
Tue, 29 Apr 1997 10:18:12 +0200


Hi Christopher,

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