QuoteDislikedc++ code:
ifstream ifs("Hour.dat");
while(ifs.good()){
ifs>>bar.year>>bar.month>>bar.day>>bar.hour>>bar.high>>bar.low;
bars.insert(bars.begin(),bar);
}
but it read the last line twice under ubuntu,
who can teach me how to correct it?
EA to read CSV file and plot values in indicator window 47 replies
Convert afl file to mq4 file 23 replies
Indicator to read from file 13 replies
QuoteDislikedc++ code:
ifstream ifs("Hour.dat");
while(ifs.good()){
ifs>>bar.year>>bar.month>>bar.day>>bar.hour>>bar.high>>bar.low;
bars.insert(bars.begin(),bar);
}
QuoteDisliked9 7 31 0 158.596 156.936
9 7 30 0 158.096 155.299
9 7 29 0 156.354 153.872
QuoteDisliked9 7 31 0 158.596 156.936
9 7 30 0 158.096 155.299
9 7 29 0 156.354 153.872
9 7 29 0 156.354 153.872(redundant line)