码迷,mamicode.com
首页 >  
搜索关键字:while read line for ifs    ( 74720个结果
UIBezierPath 和 CAShapeLayer 画画图
画一个头戴小圆的五边形: - (void)drawPentagon{     //(1)UIBezierPath对象     UIBezierPath *aPath = [UIBezierPath bezierPath];     //开始点     [aPath moveToPoint:CGPointMake(100.0, 1.0)];     //划线点     [aPa...
分类:其他好文   时间:2014-07-24 23:27:33    阅读次数:309
MRC ARC And Block
MRC 防止 block 对self的引用 解决办法 __block typeof(self) weakSelf = self; ARC 防止 block 对self的引用 解决办法 __weak typeof(self) weakSelf = self;...
分类:其他好文   时间:2014-07-24 23:21:43    阅读次数:290
HDU 1019 Least Common Multiple 数学题解
求一组数据的最小公倍数。 先求公约数在求公倍数,利用公倍数,连续求所有数的公倍数就可以了。 #include int GCD(int a, int b) { return b? GCD(b, a%b) : a; } inline int LCM(int a, int b) { return a / GCD(a, b) * b; } int main() { int T, m, a,...
分类:其他好文   时间:2014-07-24 23:13:03    阅读次数:203
USACO Section 2.1 Healthy Holsteins
/* ID: lucien23 PROG: holstein LANG: C++ */ #include #include #include using namespace std; bool compFun(int x, int y) { int temp, i = 0; while (true) { temp = 1 < temp&y...
分类:其他好文   时间:2014-07-24 23:11:33    阅读次数:433
P77 ~
#include int q1,q2,q3; void fun(long n) { q1=q2=q3=0; while(n) { switch(n%10) { case 1:q1++;break; case 2:q2++;break; case 3:q3++; } n/=10; } } main() { long n=123451123; fun(n); ...
分类:其他好文   时间:2014-07-24 23:04:43    阅读次数:271
Azure Web Site FTP用户名和密码设置
1. 打开Azure门户,点击网站的仪表板,点击重置部署凭据设定FTP用户名和密码:2. 设置用户名和密码:3. FTP 主机名下的URL以及用户名。用户名格式为网站名称\用户名。4. 输入之前设置的用户名和密码。(注:MVCAzure为我的网站名称):
分类:Web程序   时间:2014-07-24 22:57:43    阅读次数:421
java基本语法练习
1.编写程序,求100以内的全部素数。实验源码:1234567891011121314151617181920212223publicclassFirstClass {publicstaticvoidmain(String[] args){intiTemp;//临时标记变量System.out.pr...
分类:编程语言   时间:2014-07-24 22:41:03    阅读次数:310
剑指Offer:二进制中1的个数
题目:输入一个整数,输出该数二进制表示中1的个数。// 二进制中1的个数#include int wrong_count_1_bits(int n) // 错误解法: 当n为负数时, n>>=1右移, 最高位补1, 陷入死循环{ int count = 0; while(n) { ...
分类:其他好文   时间:2014-07-24 22:33:42    阅读次数:221
【《喵"的Android之路》更名声明】
声明从今天起,后续的文章隶属于《重走Android之路》系列,不再隶属于《喵"的Android之路》,之前的文章保持原所属不变。 ...
分类:移动开发   时间:2014-07-24 22:33:22    阅读次数:261
理解css属性的继承和覆盖
首先,我们梳理一下哪些属性会被继承文本color 颜色,a元素除外direction 方向font 字体font-family 字体系列font-style 字体风格font-size 字体大小font-weight 字体粗细letter-spacing 字母间距line-height 行高text...
分类:Web程序   时间:2014-07-24 22:19:22    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!