部門 > ROOT > ROOTでStringを扱う

C++ではStringが簡単に扱えると知ったので、早速ROOTで使ってみた。
string fname ="test.root"
TFile *f1 = new TFile(fname);
なんと、これはできない。
string fname ="test.root"
TFile *f1 = new TFile(fname.c_str());
としましょう。あれ、ROOTってC++を謳っていなかったっけ!?

参考

(OK)

タグ:

ROOT
最終更新:2012年01月27日 02:46