02 2020 档案
摘要:#include<cstdio> #include<iostream> #include<cstring> #include<string> #include<cstdlib> #include<algorithm> typedef char VerTexType ; //顶点 typedef in
阅读全文
摘要:#include<cstdio> #include<string> #include<iostream> #include<algorithm> using namespace std; void test01() { string one("LotteWinner!"); //clor#1 str
阅读全文
摘要:#include<cstdio> #include<cstring> #include<iostream> #include<cstdlib> #include<algorithm> #include<vector> using namespace std; void print(vector<in
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:C语言 1.定义类型的同时申明变量 struct date{ int a; double b; }h; 2struct … 为一个整体 这个整体是类型 struct date{ int a; double b; }; int main() { struct date h; scanf("%d%d",
阅读全文