Hey guys and girls, I am extremely new to coding, and I would appreciate some help. I am trying to write a code in which someone inputs a number, which is part of a file name, then I do stuff with the filename. Here is the part that I am having problems with...
void histogen()
double x;
// Get the run file
cout << "Which run number?" << endl;
cin >> x;
TFile y ("AMBER/data/runx/amhsk_runx.root");
Don't worry about the TFile command if you don't know it (you might, but if you don't, don't worry, it's not the problem), I am using this program in root to get data for a science experiment. I have looked on here for this problem, but they all dealt with more basic stuff where the filename was just something like i.txt. This one has the variable in twice, and is only part of the filename. Please help if you can. Thanks!