- 博客(2)
- 收藏
- 关注
原创 更正c++Premer Plus(第六版)中文版程序清单14.12错误
本书的workmi.cpp中动态分配内存时出错,会导致无法通过编译。 #include #include #include “workermi.h” const int SIZE = 5; int main() { using namespace std; Worker * lolas[SIZE]; int ct; for (ct = 0; ct < SIZE; ct++) { char choice; cout << “Enter the employee category:\n”
2021-04-24 12:47:56
208
转载 c++ Primer Plus第六版第十章程序清单10.7-8-9
#ifndef STOCK #define STOCK #include class Stock //类声明 { private: std::string company; long shares; double share_val; double total_val; void set_tot() { total_val=shares*share_val; } public: Stock(); //默认构造函数 Stock(const std::string &am
2021-04-04 22:04:44
683
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅