小学生c++编程资料 链接:https://pan.baidu.com/s/1FfOirxJ9rrY7rxtHUM4W_A 提取码:uqm9 #include<iostream> using namespace std; int main() { int lucheng,shijian; float ...
分类:
编程语言 时间:
2020-04-14 01:13:31
阅读次数:
93
#include<iostream> using namespace std; //二分查找法,查找一个数组的元素,并返回所在的位置的下标, //必须要是一个有序的数组, int select_arr(int arr[], int len, int arr_value) { while (1) { ...
分类:
编程语言 时间:
2020-04-14 01:09:54
阅读次数:
87
#include<iostream> using namespace std; int main() { int a,b,c,min; cout<<"a b c="; cin>>a>>b>>c; if(a<b) min=a; else min=b; if(c<min) min=c; cout<<"m ...
分类:
编程语言 时间:
2020-04-14 01:09:08
阅读次数:
115
小学生c++编程资料 链接:https://pan.baidu.com/s/1FfOirxJ9rrY7rxtHUM4W_A 提取码:uqm9 #include<iostream> using namespace std; int main() { long long i,n; bool flag; ...
分类:
编程语言 时间:
2020-04-14 00:38:46
阅读次数:
71
小学生c++编程资料 链接:https://pan.baidu.com/s/1FfOirxJ9rrY7rxtHUM4W_A 提取码:uqm9 #include<iostream> #include<ctime> //需要调用time()函数 #include<cstdlib> //需要调用srand ...
分类:
编程语言 时间:
2020-04-14 00:36:45
阅读次数:
79
问题: 8801 POM: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in ...
分类:
编程语言 时间:
2020-04-13 22:45:47
阅读次数:
123
一.stream介绍 stream(流)是一个来自数据源的元素队列 集合讲的是数据,而流讲的是计算 注意: ①stream自己不会存储元素 ②stream不会改变源对象,相反他会返回一个持有结果的新stream ③stream操作是延时执行的,这意味着他们会等到需要结果的时候才执行 stream操作 ...
分类:
编程语言 时间:
2020-04-13 19:36:02
阅读次数:
61
1,依赖与配置 1pom.xml 2,配置文件相关内容,这里使用系统默认的两个管道,output 和 input 分别对应 Source 和 Sink 两个接口 2,代码部分 1,作为数据的实体类,注意需要实现 Serializable 接口 2,消费者监听 3,封装发送消息的生产者 4,测试的 控 ...
分类:
编程语言 时间:
2020-04-13 14:09:26
阅读次数:
94
#include <iostream> #include <vector> using namespace std; void print_vec(const std::vector<int>& vec) { for (auto x : vec) { std::cout << ' ' << x; } ...
分类:
其他好文 时间:
2020-04-13 12:34:41
阅读次数:
65
1 #include <iostream> 2 using namespace std; 3 4 typedef struct TBTNode {//线索二叉树的构造函数 5 char data; 6 int ltag,rtag; 7 struct TBTNode *lchlid; 8 struct ...
分类:
其他好文 时间:
2020-04-13 12:26:37
阅读次数:
85