just wanted to ask something about addition of data. So i have this .txt file that i want to read in using c++. that one has no problem. I can read that using fstream. now that .txt file contains a data of...
Number of monitored events
Event-1:Weight-1:Event-2:Weight-2:Event-3:Weight-3:Event-4:Weight-4:
Event-5:Weight-5: ....:
those above information will have 4 pairs each row, but delimeted by a : now my question is . is it possible to add up the values of all the weight? i can't seems to understand how to read only the weight part as it is all separated by the same delimeter.