DeepBlueCode
Jan 24th, 2002, 10:27 AM
do
{
inFile >> arrProNum[cnt] >> arrProDesc[cnt] >> arrProPrice[cnt] >> arrProTax[cnt];
total++;
}
This loop refuses to input from a file. Here is the text in the file:
00001 Bread 2.00 N
00002 Butter 2.35 T
00003 Soup 3.59 N
00004 Carrots 2.79 N
00005 Potatos 5.89 T
Anybody know why this does not loop these products into these parallel arrays?
Thanks much in advance.
{
inFile >> arrProNum[cnt] >> arrProDesc[cnt] >> arrProPrice[cnt] >> arrProTax[cnt];
total++;
}
This loop refuses to input from a file. Here is the text in the file:
00001 Bread 2.00 N
00002 Butter 2.35 T
00003 Soup 3.59 N
00004 Carrots 2.79 N
00005 Potatos 5.89 T
Anybody know why this does not loop these products into these parallel arrays?
Thanks much in advance.