At the same time how can read

Hi rooters,
At the same time (in the loop)how can i read from two file ,for example :

......... ......... ifstream in(""); ifstream in(""); for (int i=0;i<100:i++) { in>>a; in>>b; c=a+b; }
but that is not correct .The compiler doesn’t know which is a and b;
I want to take “a” from “”,“b”, from “”.

Unless I am missing something, just use 2 different variable names:

ifstream in(""); ifstream in2(""); for (int i=0;i<100:i++) { in>>a; in2>>b; c=a+b; }


Thank you very much,Philippe.
Best regards!