can any one help interipre this to a code. I'm not able to figure out this code below:
Read a type
If that type's not 0
Read the number of pounds
Repeat the steps until the type == 0
for (int n=0;n<buyer.type;n++)
{
fin >>buyer.type;
if (buyer.type !=0)
{fin>>buyer.pound;
fout<<buyer.type<<' '<<buyer.pound<<' ';}
}