- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 数据结构第四章课后习题以及解决第一个最长重复子串问题
#include<iostream>#include<cstring>#include<string>#pragma warning(disable:4996)using namespace std;/****预定义****/#define LIST_INIT_SIZE 100#define LISTINCREMENT 10#define TRUE 1#defi...
2018-05-31 11:47:36 753
原创 数据结构(严蔚敏版)习题集第三章课后标新号习题答案
#include<iostream>#include<cctype>using namespace std;/****预定义****/#define STACK_INIT_SIZE 100#define STACKINCREMENT 10#define LIST_INIT_SIZE 100#define LISTINCREMENT 10#define TRUE 1#defi...
2018-05-14 15:59:15 2414
原创 数据结构(严蔚敏版)习题集第二章课后标新号习题答案
#include<iostream>#include<stdio.h>#include<cmath>#include<string.h>using namespace std;/****预定义****/#define LIST_INIT_SIZE 100#define LISTINCREMENT 10#define TRUE 1#define FAL...
2018-04-21 17:26:16 906
原创 数据结构题集(严蔚敏版)第一章算法设计题
#include <iostream>#include<time.h> #include<math.h>#include<limits.h>using namespace std;void order_reading(int X, int Y, int Z)//1.16{ int num[3] = { X,Y,Z }; int temp = 0; ...
2018-04-07 16:43:28 323
原创 C++ primer plus 第八章习题答案
#include <iostream>#include <stdio.h>#include <cctype>#include <string>#include <cstring>using namespace std;#pragma warning(disable:4996)int num_count=0;void print_word(...
2018-04-04 14:05:11 952
原创 C++ primer plus 第七章习题答案
#include<iostream>#include<cstring>using namespace std;double get_average(int x,int y)//7.1{ double average; average = 2.0*x*y / (x + y); return average;}int input_array(int grade[],int n)...
2018-04-01 15:15:00 907
原创 C++ primer plus 第六章课后习题
#include<iostream>#include<cctype>#include<string>#include<fstream>using namespace std;void get_word()//6.1{ char word; do { cin.get(word);//一个一个字符输入包括空格 if(isupper(word)) ...
2018-03-30 13:05:14 256
转载 C++中cin的详细用法
代码编译运行环境:VS2012+Win32+Debug。1.cin简介cin是C++编程语言中的标准输入流对象,即istream类的对象。cin主要用于从标准输入读取数据,这里的标准输入,指的是终端的键盘。此外,cout是流的对象,即ostream类的对象,cerr是标准错误输出流的对象,也是ostream 类的对象。这里的标准输出指的是终端键盘,标准错误输出指的是终端的屏幕。在理解cin功能时,...
2018-03-30 13:00:28 449
原创 C++ primer plus 第五章课后习题
#include <iostream>#include <array>#include <string>#include <cstring>using namespace std;void add_integer()//5.1{ int integer1=0, integer2=0,sum=0; cout << "Input the sm...
2018-03-29 13:19:28 283
原创 C++ primer plus 第四章课后习题
#include <iostream>#include <string>#include <cstring>#include <array>using namespace std;#pragma warning(disable:4996)//用VS编译代码是遇到如上问题,vs准备弃用strcpy的,安全性较低, ...
2018-03-28 00:24:38 335
原创 2018年邢侦推理题计算机求解
思路是先列出了各大问题的一个题干,然后返回一个答案,最后通过穷举,得到的答案与输出答案相同,则确定此为答案。#include<iostream>using namespace std;int try1 = 0;int first_answer(int answer1,int answer2, int answer3, int answer4,int answer5,int answer...
2018-03-28 00:20:59 229
原创 编写一个程序解决选择问题
用两种方法来实现对数组的排序。一种为冒泡排序,第二种为选择排序#include <stdio.h>#include <iostream>#include<time.h> using namespace std;const int num = 30;void bubble_sort(int number[], int N)//冒泡排序{ int temp; fo...
2018-03-26 14:46:57 947
原创 只会一招,20天学做智能遥控小车经历
这个是我用了20天用泡沫板、黑胶带、杜邦线、3D打印的夹子、12V锂电池、木棍、l298n驱动电路模块、51单片机做成的一辆比较粗糙的小车;这里所说的只会一招便是控制单片机的IO口。 一开始呢,是因为学校举办了一个机械结构设计大赛,目的是做一辆智能小车做规定动作,走完规定的路线。而我手上现成的有51单片机的一个完整的开发板,也学过一点点单片机的知识,就打算开始弄起来。一开始也
2016-11-13 20:53:54 3341
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人