슈퍼마켓 금전 등록기

#include<stdio.h>
#include<stdlib.h>
#define L sizeof(struct Goods)
struct Goods
{char name[33];
플로트 가격;
struct Goods *다음;
};
플로트 총계=0;
int main()
{구조 상품 *creat();
void print(struct Goods *head);
구조체 상품 *m;
플로트 k;
printf("이동식 게임기:\n");
m=만들기();
인쇄(엠);

&p1->가격); } p2->다음=NULL; 리턴 헤드; }

























void print(struct Goods *head)
{struct Goods *p=head;
do{ Total+=p->price; p=p->next;}while(p!=NULL); printf("결제 금액: %. 2f\n",Total); printf("실제로 지불한 금액:"); }




추천

출처blog.csdn.net/AR_Pai/article/details/110943045