02 2020 档案

摘要:#include<cstdio> #include<iostream> #include<cstring> #include<string> #include<cstdlib> #include<algorithm> typedef char VerTexType ; //顶点 typedef in 阅读全文
posted @ 2020-02-20 12:10 DuJunlong 阅读(6) 评论(0) 推荐(0) 编辑
摘要:#include<cstdio> #include<string> #include<iostream> #include<algorithm> using namespace std; void test01() { string one("LotteWinner!"); //clor#1 str 阅读全文
posted @ 2020-02-20 12:05 DuJunlong 阅读(17) 评论(0) 推荐(0) 编辑
摘要:#include<cstdio> #include<cstring> #include<iostream> #include<cstdlib> #include<algorithm> #include<vector> using namespace std; void print(vector<in 阅读全文
posted @ 2020-02-20 11:58 DuJunlong 阅读(6) 评论(0) 推荐(0) 编辑
摘要:binary_search 注意: 1.[ , ) 2.找到返回1,反之0 3.查找规则必须和排序规则相同 int a[100]; for(int i=10;i>=1;i--) a[i]=i; sort(a+1,a+11); //排序规则为升序 for(int i=1;i<=10;i++) prin 阅读全文
posted @ 2020-02-07 15:27 DuJunlong 阅读(3) 评论(0) 推荐(0) 编辑
摘要:1. 普通排序:升序 sort() 区间:[ , ) int a[10]={2,5,6,9,8,4,3,5,6,100}; sort(a,a+10); //2 3 4 5 5 6 6 8 9 100 可以对数组中任意一段排序 int a[10]={2,5,6,9,8,4,3,5,6,100}; so 阅读全文
posted @ 2020-02-06 22:40 DuJunlong 阅读(9) 评论(0) 推荐(0) 编辑
摘要:C语言 1.定义类型的同时申明变量 struct date{ int a; double b; }h; 2struct … 为一个整体 这个整体是类型 struct date{ int a; double b; }; int main() { struct date h; scanf("%d%d", 阅读全文
posted @ 2020-02-06 20:35 DuJunlong 阅读(20) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示