![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
biubiu_buaa
这个作者很懒,什么都没留下…
展开
-
C++ Primer Plus 第六版 第三章编程练习答案
自己写的 欢迎探讨纠错呀#include <iostream>using namespace std; void question_1();void question_2();void question_3();void question_4(); void question_5();void question_6();void question_7();in...原创 2019-02-01 18:07:30 · 261 阅读 · 0 评论 -
C++ Primer Plus 第六版第十四章编程练习答案
//question 1//wine.h#ifndef WINE_H#define WINE_H#include <string>#include <valarray>template <class T1, class T2>class Pair{ private: T1 a; T2 b; pu...原创 2019-03-30 22:06:01 · 731 阅读 · 0 评论 -
C++ Primer Plus 第六版第十五章编程练习答案
//question1//tv.h#ifndef TV_H#define TV_Hclass Remote;class Tv{ private: int state; int volume; int maxchannel; int channel; int mode; int i...原创 2019-05-18 23:00:19 · 866 阅读 · 0 评论 -
C++ Primer Plus 第六版 第十六章编程练习答案
//question1#include <iostream>#include <string>bool is_circle(const std::string & s);int main() { std::string s; std::cout << "Enter a word(q to quit): \n...原创 2019-05-26 10:39:50 · 706 阅读 · 2 评论 -
C++ Primer Plus 第六版第十七章编程练习答案
//question1#include <iostream>#include "string.h" const int LIMIT = 255;int main(){ char input[LIMIT]; char t; int count = 0; std::cout << "Enter a phase: \n"; std::cin.get(in...原创 2019-06-06 23:13:26 · 1036 阅读 · 0 评论 -
迷宫问题 栈解法
//// stack.h// #ifndef stack_h#define stack_h static const int Size = 50;struct point{public: int x; int y; int dir;}; struct stack{private:public: point data[Size]; int top; ...原创 2019-06-18 22:27:47 · 428 阅读 · 0 评论 -
迷宫问题 链队解法
//queue.h#ifndef queue_h#define queue_h#include <stdlib.h>#include <iostream>struct point{public: int index; int x; int y; int pre;};struct queue{private: struct Node {...原创 2019-06-19 21:42:39 · 393 阅读 · 0 评论 -
剑指刷题 面试题3、4
面试题3P39#include <iostream>#include <vector>int find_re(std::vector<int> v);int main(){ using namespace std; int temp; vector<int> vct; cout << "Enter numbe...原创 2019-06-11 13:14:14 · 96 阅读 · 0 评论 -
四则混合运算
//// calculate.cpp//#include "calculate.hpp"const int MaxSize = 50;int main(){ char exp[] = "(56-20)/(4+2)"; char postexp[MaxSize]; trans(exp, postexp); printf("中缀表达式:%s\n", ...原创 2019-06-16 19:04:03 · 1434 阅读 · 0 评论 -
环形队列 报数问题
#ifndef queue_h#define queue_h#include <iostream>const int Queue_Maxsize = 10;class queue{ private: int front; int rear; int data[Queue_Maxsize]; public: queue() { front = ...原创 2019-06-20 21:14:36 · 1445 阅读 · 0 评论 -
C++ Primer Plus 第六版第十三章编程练习答案
//question1//classic.h#ifndef CLASSIC_H#define CLASSIC_Hclass Cd{ private: char performers[50]; char label[20]; int selections; double playtime; public:...原创 2019-03-25 22:48:30 · 342 阅读 · 0 评论 -
C++ Primer Plus 第六版第十二章编程练习答案
//question1//Cow.h#ifndef COW_H#define COW_Hclass Cow{ char name[20]; char * hobby; double weight; public: Cow(); Cow(const char * nm, const char...原创 2019-03-21 21:57:56 · 663 阅读 · 0 评论 -
C++ Primer Plus第六版编程练习第二章
最近开始刷书 希望别半途而废吧第二章编程练习本人的答案如下,欢迎讨论纠错#include <iostream>using namespace std;void question1();void question2();void question3_1();void question3_2();void question4();void question5();...原创 2019-01-28 10:23:06 · 207 阅读 · 0 评论 -
C++ Primer Plus 第六版编程练习第六章答案
#include <iostream>#include <cctype>#include <string>#include <fstream>#include <cstdlib>using namespace std;void question_1();void question_2();void question_...原创 2019-02-15 10:47:59 · 412 阅读 · 0 评论 -
C++ Primer Plus 第六版编程练习 第四章答案
欢迎讨论纠错~ #include <iostream>#include <cstring>#include <string>#include <vector>using namespace std;void question_1();void question_2();void question_3();void ques...原创 2019-02-10 17:07:37 · 543 阅读 · 0 评论 -
C++ Primer Plus 第六版第八章编程练习答案
#include <iostream>#include <cstring>#include <cctype>using namespace std;void q1();void print(char * a, int b = 0);const int Len = 40;struct CandyBar{ char maker[Len]...原创 2019-02-22 20:54:14 · 720 阅读 · 0 评论 -
C++ Primer Plus 第六版 第七章编程练习答案
#include <iostream>#include <cstring>double q1(double a, double b);void q2();int enter(double * arr, int size);void show(double arr [], int size);double mean(double * arr, int size)...原创 2019-02-18 10:19:33 · 727 阅读 · 0 评论 -
C++ Primer Plus 第六版第十章编程练习答案
//question1//bank.h#ifndef BANK_H#define BANK_H#include <iostream>#include <string>class Bank{ private: std::string name; std::string account; doubl...原创 2019-02-27 22:26:06 · 406 阅读 · 0 评论 -
C++ Primer Plus 第六版 第五章编程练习答案
欢迎纠错讨论啦~ #include <iostream>#include <vector>#include <cstring>#include <string>using namespace std;void question_1();void question_2();void question_3();void que...原创 2019-02-12 20:55:07 · 420 阅读 · 0 评论 -
C++ Primer Plus 第六版第九章编程练习答案
//question1// golf.h#ifndef GOLF_H#define GOLF_Hconst int Len = 40;struct golf{ char fullname[Len]; int handicap;};void setgolf(golf & g, const char * name, int hc);int setgol...原创 2019-02-24 20:38:05 · 553 阅读 · 0 评论 -
C++ Primer Plus 第六版第十一章编程练习答案
//question1//vector.h#ifndef VECTOR_H#define VECTOR_H#include <iostream>namespace VECTOR{ class Vector { public: enum Mode {RECT, POL}; private: ...原创 2019-03-17 16:01:25 · 506 阅读 · 0 评论 -
字符串匹配问题
Brute Force算法比较简单好理解#include <iostream>int match(char *s, char *t);int main(){ char str_s[7] = "aaaaab"; char str_t[5] = "aaab"; int result = match(str_s, str_t); if(result >= 0...原创 2019-06-22 16:20:31 · 820 阅读 · 0 评论