//...
int main();
{
variables;
cin a;
if (a==1)
{
f1=f1+1;
}
}
The program is more complicated but this is an small example, it gived me something like the main files dosent have the "f1" variable, i want to use 1 file to give all the variables on more files. Please help me! Thanks in advance!
This really doesn't have anything to do with working with multiple files, it is a variable scope issue. Perhaps you need to review your documentation about variable scope.