Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~79 People Reached
Favorite Forums
Favorite Tags
c x 1
Member Avatar for jordanspy

[code=cpp]struct Product{ /* declare variables here to store product data */ char product_name[LEN]; int product_id; int quantity; double unit_price; int expire_month, expire_year; struct Product *next; }; pfile=fopen("binary.bin","wb"); if(pfile!=NULL) { while(head != NULL) { fwrite(&head, sizeof(struct Product), 1, pfile); //head=head->next; } fclose(pfile); puts("File Saved successfully!"); system("pause"); } else { puts("File not …

Member Avatar for Salem
0
79