BAJA
June 29, 2019, 5:14am
1
In this part from my code i could read the value of time
{
if (linenumber==10) {
getline(inputfile,line,’-’);
inputfile>>time;}
}
this is the line 10:
TOTAL_TIME - 2488.764000
But in different data files this line appear as follows:
total time 19856
i am trying to modify this code part to get the results but it dose not give the expected result.
Can you plz Check
yus
June 29, 2019, 10:35am
2
Hi,
this does not seem to be ROOT-related. But anyway, we should be able to reproduce the problem, so please let us know how the following variables are defined and used:
linenumber
, inputfile
, line
, time
BAJA
June 29, 2019, 10:43am
3
here is my whole code,
the problem in line 37,
this code can read the data line when it is in the formate:
TOTAL_TIME - 2488.764000
try this
if (linenumber==10{
getline(inputfile,live, ' ');
getline(inputfile,time, ' ');
line.append(1, ' ');
line+=time;
inputfile>>time;
}
1 Like
BAJA
June 29, 2019, 12:56pm
5
not working, can you try again please
system
Closed
July 13, 2019, 12:57pm
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.