1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Ore OreArr[48];
string tempOreIn;
string OreID;
string tempName;
float tempVol;
float tempCompVol;
int tempTrit;
int tempPye;
int tempMex;
int tempIso;
int tempNoc;
int tempMeg;
int tempZyd;
int tempMor;
std::stringstream strcon;
for(int i = 0; i < 48; i++)
{
OreArr[i].SetMins(0,0,0,0,0,0,0,0);
OreArr[i].SetVol(0,0);
OreArr[i].SetSaleVal(0,0,0);
}
while (getline(ore_in, tempOreIn, ';'))
{
strcon << tempOreIn;
strcon >> OreID >> tempName >> tempVol >> tempCompVol >> tempTrit >> tempPye >> tempMex >> tempIso >> tempNoc >> tempMeg >> tempZyd >> tempMor;
OreArr[GetOreEle(OreID)].SetName(tempName);
OreArr[GetOreEle(OreID)].SetVol(tempVol, tempCompVol);
OreArr[GetOreEle(OreID)].SetMins(tempTrit, tempPye, tempMex, tempIso, tempNoc, tempMeg, tempZyd, tempMor);
}
| |