自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

原创 C++ Primer Plus(第六版)第三章课后习题

C++ Primer Plus(第六版)第三章课后习题3.7.1#include int main(){using namespace std;double height;const int change=12;int foot, inch;cout <<“Please enter your height:_______\b\b\b\b\b\b\b” ;cin &g...

2020-01-08 21:26:53 336

原创 C++ Primer Plus(第六版)第十八章课后习题

C++ Primer Plus(第六版)第十八章课后习题18.12.1#include <iostream>#include <initializer_list>using namespace std;template<class T>T average_list(initializer_list<T> a);int main(){...

2020-01-08 21:19:49 174

原创 C++ Primer Plus(第六版)第十七章课后习题

C++ Primer Plus(第六版)第十七章课后习题17.8.1#include <iostream>const int NUM=100;int main(){ using namespace std; char str[NUM]; cout << "Enter a string with '#': " << endl; cin.get(s...

2020-01-08 21:13:09 255

原创 C++ Primer Plus(第六版)第十六章课后习题

C++ Primer Plus(第六版)第十六章课后习题16.10.1#include <iostream>#include <string>using namespace std;bool is_palindrome(string &s);int main(){ string str; cout << "Enter a string:...

2020-01-08 20:55:44 283

原创 C++ Primer Plus(第六版)第十五章课后习题

C++ Primer Plus(第六版)第十五章课后习题15.8.1tv.h#ifndef TV_H_#define TV_H_class Remote;class Tv{private: int state; int volume; int maxchannel; int channel; int mode; int input;public: friend cl...

2020-01-08 20:15:10 324

原创 C++ Primer Plus(第六版)第十四章课后习题

C++ Primer Plus(第六版)第十四章课后习题14.7.1wine.h#ifndef WINE_H_#define WINE_H_#include <iostream>#include <string>#include <valarray>using std::string;template<class T1, class T2...

2020-01-08 17:07:36 273

原创 C++ Primer Plus(第六版)第十三章课后习题

C++ Primer Plus(第六版)第十三章课后习题13.11.1classic.h#ifndef CD_H_#define CD_H_class Cd{private: char performers[50]; char lable[20]; int selections; double playtime;public: Cd(char *s1,char *s2,...

2020-01-08 16:42:21 234

原创 C++ Primer Plus(第六版)第十二章课后习题

C++ Primer Plus(第六版)第十二章课后习题12.10.112.10.1.h#ifndef DH#define DHclass Cow{char name[20];char * hobby;double weight;public:Cow();Cow(const char * nm, const char *bo,double wt);Cow(const Co...

2020-01-08 16:19:53 453

原创 C++ Primer Plus(第六版)编程练习课后习题答案汇总

C++ Primer Plus(第六版)第二章课后习题2.7.1#include int main(){using namespace std;cout << “I am Francis” << endl;return 0;}2.7.2#include int main (){using namespace std;int distance;c...

2020-01-08 14:33:06 1535

原创 C++ Primer Plus(第六版)第九章课后习题

C++ Primer Plus(第六版)第九章课后习题9.6.1golf.hconst int Len=40;struct golf{char fullname[Len];int handicap;};void setgolf(golf &g,const char *name,int hc);int sergolf(golf &g);void handicap...

2020-01-08 09:45:12 184

原创 C++ Primer Plus(第六版)第八章课后习题

C++ Primer Plus(第六版)第八章课后习题8.8.1#include using namespace std;inline void show(char *ch,int n){for(int i=0;n>=1&&i<n;i++)cout << ch <<endl;}int main(){char *ch=“Wan...

2020-01-08 09:29:18 206

原创 C++ Primer Plus(第六版)第十一章课后习题

C++ Primer Plus(第六版)第三章课后习题3.7.1#include int main(){using namespace std;double height;const int change=12;int foot, inch;cout <<“Please enter your height:_______\b\b\b\b\b\b\b” ;cin &g...

2020-01-08 09:08:42 216

原创 C++ Primer Plus(第六版)第七章课后习题

C++ Primer Plus(第六版)第七章课后习题7.13.1#include double even(double x,double y);int main(){using namespace std;double x,y;double z;cout << "Please enter two numbers: ";cin >> x >>...

2020-01-08 09:02:53 273

原创 C++ Primer Plus(第六版)第六章课后习题

C++ Primer Plus(第六版)第六章课后习题6.11.1#include #include int main(){using namespace std;cout << “Please enter text for analysis, and type @ to terminate input.\n”;char ch;cin.get(ch);while(c...

2020-01-07 21:21:24 350

原创 C++ Primer Plus(第六版)第五章课后习题

C++ Primer Plus(第六版)第五章课后习题5.9.1#include int main(){using namespace std;int max,min;cout << "Enter the maxinum number: ";cin >> max;cout << "Enter the mininum number: ";cin...

2020-01-07 21:01:27 188

原创 C++ Primer Plus(第六版)第四章课后习题

C++ Primer Plus(第六版)第三章课后习题3.7.1#include int main(){using namespace std;double height;const int change=12;int foot, inch;cout <<“Please enter your height:_______\b\b\b\b\b\b\b” ;cin &g...

2020-01-07 20:16:03 237

原创 C++ Primer Plus(第六版)第十章课后习题

C++ Primer Plus(第六版)第二章课后习题2.7.1#include int main(){using namespace std;cout << “I am Francis.” << endl;return 0;}2.7.2#include int main (){using namespace std;int distance;...

2020-01-07 20:09:37 313

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除