会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
认清本质
https://coding.net/u/liu1996
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2016年12月24日
ios navigationController代码创建
摘要: 1.新建类文件FirstViewController,subClass of:UIViewController 2.新建类文件MYNavigationController,subClass of:UINavigationController 3.AppDelegate.m中包含以上两个头文件,然后在
阅读全文
posted @ 2016-12-24 17:34 认清本质
阅读(324)
评论(0)
推荐(0)
2016年12月20日
安装unbuntu系统后改回windows引导的方法
摘要: 1.安装EasyBCD 2.点BCD部署 3.分区:选c盘 4.点击编写MBR 5.点编辑引导菜单 6.确定win10后们的是有勾 7.点击保存设置
阅读全文
posted @ 2016-12-20 20:02 认清本质
阅读(856)
评论(0)
推荐(0)
ios中获取当前屏幕尺寸的方法
摘要: //获取当前屏幕尺寸 CGRect screenFrame = [UIScreen mainScreen].bounds; int screenWidth = screenFrame.size.width; int screenHeight = screenFrame.size.height; in
阅读全文
posted @ 2016-12-20 19:57 认清本质
阅读(3991)
评论(0)
推荐(0)
2016年10月26日
poj2140(奇因数的个数)
摘要: #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 认清本质
阅读(422)
评论(0)
推荐(0)
2016年10月16日
poj1256(全排列stl)
摘要: #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 认清本质
阅读(754)
评论(0)
推荐(0)
2016年10月10日
二维数组可以输出-1号元素
摘要: #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 认清本质
阅读(517)
评论(0)
推荐(0)
2016年9月27日
memset用法总结
摘要: memset是计算机中C/C++语言函数。将s所指向的某一块内存中的前n个 字节的内容全部设置为ch指定的ASCII值, 第一个值为指定的内存地址,块的大小由第三个参数指定,这个函数通常为新申请的内存做初始化工作, 其返回值为指向s的指针。 1.char类型,可以初始化为任何值; 2.int类型,只
阅读全文
posted @ 2016-09-27 21:49 认清本质
阅读(317)
评论(0)
推荐(0)
2016年8月8日
博奕
摘要: 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 认清本质
阅读(144)
评论(0)
推荐(0)
2016年7月30日
?:问号冒号运算符
摘要: #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 认清本质
阅读(457)
评论(0)
推荐(0)
stl 生产全排列 next_permutation
摘要: #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 认清本质
阅读(106)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告