Hi, If you execute with CINT, you do not need to include the headers of classes already part of the ROOT system. However, if you want to use ACLIC with .x dong.cpp++ you must include the header files of all classes used in the script #include "TH1.h" #include "TF1.h" void dong() { .. } You must read the Users Guide, in particular the first chapters where all that is explained in details. Rene Brun On Sun, 21 Sep 2003, [gb2312] Dong Zhou wrote: > dear rooters: > sorry to interrupt again, i am really new to root. > > i would like to save the code to .cpp file, and execute the code using > root[] .x dong.cpp > > in dong.cpp, i used the classes defined in root, such as TH1F, TF1. > shall i include some .h files? where r they? > > thank u. > > zhou dong > > > > --------------------------------- > Do You Yahoo!? > 启用电邮帐号,领会雅虎通[身临其境聊电影]的动感魅力,还有网络摄像头+雅虎通收音机等你来拿
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET