Yeah, i'll try it out with fstream. I used fopen because i had used it a long time ago to parse data when coding in c.
But let me see if i understand correctly, i should discard of "@(num,num)" for each instance of "num@(num,num)"
for ex: Input file
5
3
1@(2,1) 0@(2,2) 7@(2,3) <---- So i keep 1 0 7 yeah ?