C++编程习题
云中自有锦书
量变才有质变
展开
-
C++ Primer Plus(第六版)第九章课后编程答案
1. //golf.h--for pe9-1.cpp const int Len = 40; struct golf { char fullname[Len]; int handicap; }; void setgolf(golf &g, const char *name, int hc); int setgolf(golf & g); void handicap(...原创 2018-12-02 15:59:23 · 917 阅读 · 0 评论 -
C++ Primer Plus(第六版)第十章课后编程答案
1. //头文件stock00.h #ifndef STOCK00_H_ #define STOCK00_H_ #include<cstring> // class definition class BankAccount { private: char name[40]; //or std::string name; char acctnum[25]; //o...原创 2018-12-21 15:48:44 · 1842 阅读 · 0 评论 -
C++ Primer Plus (第六版)第11章课后编程答案
1. // vect.h -- Vector class with <<, mode state #ifndef VECTOR_H_ #define VECTOR_H_ #include <iostream> namespace VECTOR { class Vector { public: enum Mode {RECT, PO...原创 2018-12-24 16:27:18 · 260 阅读 · 0 评论 -
C++ Primer Plus(第六版)第12章课后编程答案
1. #ifndef QUEUE_H_ #define QUEUE_H_ class Cow { private: char name[20]; char *hobby; double weight; public: Cow(); Cow(const char *num, const char *ho, double wt); Cow(const Cow & c); ~...原创 2018-12-29 19:56:09 · 739 阅读 · 0 评论 -
C++ Primer Plus(第六版)第十三章课后编程答案
1. #ifndef TABTENN0_H_ #define TABTENN0_H_ #include<iostream> //基类 class Cd { private: char performers[50]; char label[20]; int selections; //number of selections double playtime; ...原创 2019-01-06 09:18:09 · 950 阅读 · 8 评论 -
C++ Primer Plus(第六版) 第十四章课后编程答案
参考链接:https://blog.csdn.net/weixin_41882882/article/details/82118401 https://blog.csdn.net/u012175089/article/details/53914092 1. //头文件,类的声明 #ifndef WINE_H_ #define WINE_H_ #include<iostream>...原创 2019-02-14 20:16:59 · 920 阅读 · 0 评论