摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>#define NUM 2struct item{char brand[20];//商品名称 char id[10];//商品编号 float in_price;//进货价格 float out_price;//售货价格 int Inamount; //进货量int Outamount;//剩余量 };struct item_node{struct item wanted;int amount;struct item_node *next;};int m 阅读全文
posted @ 2012-11-22 23:11 hqcao 阅读(497) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>#define NUM 2//为了方便,这里限制两个商品struct item{char brand[20];//商品名称 char id[10];//商品编号 float in_price;//进货价格 float out_price;//售货价格 int Inamount; //进货量int Outamount;//剩余量 };struct item_node{struct item wanted;int amount;struct item_nod 阅读全文
posted @ 2012-11-22 09:38 hqcao 阅读(141) 评论(0) 推荐(0) 编辑