Problem with IF statement!

This is a discussion on Problem with IF statement! within the C++ Programming forums, part of the General Programming Boards category; Hey guys and gals!
so currently my code is reading a txt file something like this.
19880113041524 408
19880113043027 406
...

it extracts the numbers into another array so each row looks like
1988 1 13 4 ... etc
However, when my program reads the txt at one point, it compares 1988 with 1988 and says its false. Anyone know what I'm sucking at?

"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson