摘要: 1.新建类文件FirstViewController,subClass of:UIViewController 2.新建类文件MYNavigationController,subClass of:UINavigationController 3.AppDelegate.m中包含以上两个头文件,然后在 阅读全文
posted @ 2016-12-24 17:34 认清本质 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1.安装EasyBCD 2.点BCD部署 3.分区:选c盘 4.点击编写MBR 5.点编辑引导菜单 6.确定win10后们的是有勾 7.点击保存设置 阅读全文
posted @ 2016-12-20 20:02 认清本质 阅读(841) 评论(0) 推荐(0) 编辑
摘要: //获取当前屏幕尺寸 CGRect screenFrame = [UIScreen mainScreen].bounds; int screenWidth = screenFrame.size.width; int screenHeight = screenFrame.size.height; in 阅读全文
posted @ 2016-12-20 19:57 认清本质 阅读(3973) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int n,s=0; scanf("%d",&n); for(int i=1;i<=n;i++) if(n%i==0&&i%2==1) s++; printf("%d",s); return 0;}/*假设a,a+1,a+2...a+k ,为 阅读全文
posted @ 2016-10-26 15:39 认清本质 阅读(406) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>#include<algorithm>using namespace std;bool cmp(char a,char b){ if(a>='A'&&a<='Z'&&b>='A'&&b<='Z') return a<b; if(a 阅读全文
posted @ 2016-10-16 15:47 认清本质 阅读(691) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>int main(){ int arr[2][13]; memset(arr,0,sizeof(arr)); for(int i=0;i<10;i++) printf("%d ",arr[1][i]); printf("\n"); 阅读全文
posted @ 2016-10-10 11:13 认清本质 阅读(484) 评论(0) 推荐(0) 编辑
摘要: memset是计算机中C/C++语言函数。将s所指向的某一块内存中的前n个 字节的内容全部设置为ch指定的ASCII值, 第一个值为指定的内存地址,块的大小由第三个参数指定,这个函数通常为新申请的内存做初始化工作, 其返回值为指向s的指针。 1.char类型,可以初始化为任何值; 2.int类型,只 阅读全文
posted @ 2016-09-27 21:49 认清本质 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1.威佐夫博弈 const double q = (1 + sqrt(5.0)) / 2.0; // 黄金分割数 int Wythoff(int a, int b){ if (a > b) swap(a, b); int k = b - a; if (a == (int)(k * q)) retur 阅读全文
posted @ 2016-08-08 20:59 认清本质 阅读(137) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int n,m; scanf("%d%d",&n,&m); int s=n?m:0;//当n为真的时候,s=m,否则,s=0; printf("%d\n",s); return 0;} 阅读全文
posted @ 2016-07-30 10:38 认清本质 阅读(448) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<algorithm>using namespace std;int main(){ int n,p[10]; scanf("%d",&n); for(int i=0;i<n;i++) scanf("%d",&p[i]); sort(p,p+n);/ 阅读全文
posted @ 2016-07-30 10:21 认清本质 阅读(102) 评论(0) 推荐(0) 编辑