摘要: #include<iostream.h>#include<string.h>class Device{ int Did;char *Dname; char Dmaker[10];double Dprice; int Dstock;public:Device(int id,char name[10],char maker[10],double price,int stock){Dname=new char[10];Did=id;strcpy(Dname,name);strcpy(Dmaker,maker);Dprice=price;Dstock=stock;Dvalue= 阅读全文
posted @ 2010-12-02 23:03 java简单例子 阅读(219) 评论(0) 推荐(0) 编辑