7 书上的答案应该是有误的,我用VS2017无法直接引用lambda表达式,得添加function包装器才行 #include <iostream> #include <array> #inclu…
标签:复习题
C++ Primer Plus [第六版]第14章复习题答案
2 #ifndef FRABJOUS_H_ #define FRABJOUS_H_ #include <iostream> #include <string> class Frabjous { p…
C++ Primer Plus [第六版]第10章复习题答案
5 #ifndef BANK_H_ #define BANK_H_ #include <string> class Bank { private: std::string name; std::string …
C++ Primer Plus [第六版]第9章复习题答案
3 #include <iostream> int main() { double x; std::cout << "请输入值: "; while (!(std::cin >> x))…
C++ Primer Plus [第六版]第8章复习题答案
4. 下面是一个结构模板: struct box { char maker[40]; float height; float width; float length; float volume; }; a. 编写一个函数…
C++ Primer Plus [第六版]第7章复习题答案
复习题一般我只把书上写不下的发布出来,其他的都在书上直接做了 8 编写一个函数,其原型如下: int replace(char * str, char c1, char c2); 该函数将字符串中所有的c1都替换为c2,…
C++ Primer Plus [第六版]第4章复习题答案
13 #include <iostream> #include <vector> int main() { using namespace std; int n; cout << "请…