Hi,
pls give some ideas about this:
Thanks a lot.......
1)A function is reading data from text file , that same function is returning 2 values after reading from the file ( so I made inputfile , in the argument list as call by reference (right or wrong)
if wrong what should be done ......
funcn defination is :
Code:
int readFromFIle(account database[], ifstream &inputFile)
{ :
:
:
return count ;
return tempPIN;
}
2) when I am calling the above function , in the Main ,how I am suppose to store this 2 variables ??
Code:
int Main()
{
:
:
??? (variable 1) = readFromFIle( database, inputFile)
???(variable2 ) = readFromFIle( database, inputFile)
return 0;
}
3)I have to use those 2 variables in number of other functions
Code:
case 1: NewAccountCreation(database, totalRecord , tempPIN);
case2 : openExistingAccount(database, totalRecord, tempPIN);
Are all the methods right?????because I feel my 1st and 2nd part is wrong........
help!!!!!!!!!