摘要: 首先将代码附上:头文件: 1 #ifndef STOCK10_H_ 2 #define STOCK10_H_ 3 4 #include 5 6 class Stock 7 { 8 private: 9 std::string company;10 long shares;11 double share_val;12 double total_val;13 void set_tot() { total_val = shares * share_val; }14 public:15 Stock();16 Stock(const std:... 阅读全文
posted @ 2013-11-05 11:04 Sure::D 阅读(418) 评论(0) 推荐(0) 编辑