In [1]:
std::cout<<"Hello World"<<std::endl;
In [2]:
TCanvas *c=new TCanvas("c");
In [3]:
TF1 *f=new TF1("f","sin(x)",0,6);
In [4]:
c->Draw();
f->Draw();
In [5]:
std::cerr<<"Hola"<<std::endl;
fprintf(stderr,"hola");
In [6]:
class Test
{
public:
Test(){};
void Print()
{
std::cout<<"Hello"<<std::endl;
}
};
In [7]:
Test test;
test.Print();
In [8]:
std::cerr<<"print error"<<std::endl;
In [ ]: