上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: TBD 阅读全文
posted @ 2020-12-31 11:42 TheDa 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 思想是排序后 bool getSumNum(int[] arr,int Sum), //arr为数组,Sum为和 { int i,j; for(i = 0, j = n-1; i < j ; ) { if(arr[i] + arr[j] == Sum) return true; else if(ar 阅读全文
posted @ 2020-12-30 19:41 TheDa 阅读(87) 评论(0) 推荐(0) 编辑
摘要: #include<unordered_map> unordered_map<int,int>mp; 阅读全文
posted @ 2020-12-30 17:30 TheDa 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 求<=K的所有质数 #include<cstdio> #include<queue> #include<stack> #include<algorithm> #include<cstring> #include<string> #include<vector> #include<iostream> 阅读全文
posted @ 2020-12-30 15:33 TheDa 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 如果碰到了按行输入,那就 string s; getline(cin,s); 如果输入当中含有转义字符的话 *char c=getchar(); if(c=='\\')cout<<111<<endl; else cout<<c<<endl;*/ 然后回车换行\n可以用getchar读取识别 还有一个 阅读全文
posted @ 2020-12-29 21:08 TheDa 阅读(59) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/niiick/article/details/89153096 主要是看这一篇博客写的。 本来是想,是不是什么模拟退火,二分查找,随机搜索什么的算法。 但是最后不是,,,根据点的随机分布而得到了O(n^3)到线性时间的算法??? 就是最小圆覆盖一定是两个点 阅读全文
posted @ 2020-12-28 21:09 TheDa 阅读(82) 评论(0) 推荐(0) 编辑
摘要: for(map<ordered datatype , datatype >::iterator iter =mapname.begin();iter!=mapname.end()) cout<<mapname->first<<" "<<mapname->second. <<endl 阅读全文
posted @ 2020-12-28 17:54 TheDa 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 1 创建新窗体 Application.Run(new Form1()); 创建了一个新的窗体,并运行了它 2 添加控件Control 同样使用new运算符来生成一个控件 阅读全文
posted @ 2020-04-06 11:14 TheDa 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 一 C#的基础类 1. Object类是所有类的基类 因此任何对象都具有以下三个方法 Equals()判断两个对象相等 ToString()将对象信息转换为一个字符串 GetType()获得对象的类型 注意,常量也是类型 二 C#的集合类 List<T> Stack<T> Queue<T> Link 阅读全文
posted @ 2020-03-16 00:05 TheDa 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: 一 C#的委托 委托的一般形式 例如public delegate double MyDelegate(int x) 委托的实例化 ,下面也就是说C#中的委托是如何去调用的 MyDelegate d1 = New MyDelegate(obj.MyMethod); 声明了一个委托d1。委托实际上是对 阅读全文
posted @ 2020-03-10 11:56 TheDa 阅读(409) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页