So, I've just started to program in C++, and I inherited a program to continue its development. So, i have to read these file wich contains three columns. The default value for column 1 is 1, for column 2 is 0 and for column 3 is also 0. In this case, data must be read normally. Column 3 valkue represents an important spot, and column 2 value adds up every time columns 3 number is different from 0. Column 1 value changes to column 2 value at some points. What i need is the following: every time columns 3 value equals 3, i must record column 2 value e do some routine every time column 1 has this value, and otherwise do the regular routine. I believe it's easier if i copy the code:
do routine a;
if (column 1()=k)
do routine b;
The problem is i'm only gettin routine a, even when column 1 = k. How can i correct this? Thanks in advance.