Guest User

Untitled

a guest
Jun 28th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. FILE *fp;
  2. fp = fopen("Records.txt","r");
  3. cout<<"Category ID Name Author Quantity Price Racknn";
  4. while(fread(&b,sizeof(b),1,fp)==1){
  5. cout<<b.category<<" "<<b.id<<" "<<b.name<<" "<<b.author<<" "<<b.quantity<<" "<<b.price<<" "<<b.rackno;
  6. cout<<endl<<endl;
  7. }
  8. fclose(fp);
Add Comment
Please, Sign In to add comment