struct good { char good_name[32]; float unit_price; int num; float discount; }; struct customer { struct good *list; int score; float money; };
结构体数组来实现 struct goods { char[20] name; float price; int num; float sum; }; goods gds[20 ]; 商品名最后加 ‘/0’ 结束符 即可!
69,371
社区成员
243,082
社区内容
加载中
试试用AI创作助手写篇文章吧