摘要: //// ViewController.m// 图片轮播器//// Created by YaguangZhu on 15/8/12.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import "ViewControlle... 阅读全文
posted @ 2015-08-12 12:27 微博和csdn还有你 阅读(175) 评论(0) 推荐(0) 编辑
摘要: //// HMViewController.m// 08-倒计时//// Created by apple on 14-8-18.// Copyright (c) 2014年 itcast. All rights reserved.//#import "HMViewController.h"... 阅读全文
posted @ 2015-08-12 09:50 微博和csdn还有你 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 先确定代理和缩放比例self.scollView.delegate = self;self.scollView.maximumZoomScale=2.0;self.scollView.minimumZoomScale=0.2;头文件写上代理@interface ViewController ()//... 阅读全文
posted @ 2015-08-11 19:27 微博和csdn还有你 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 从5随机到7随机及其扩展【题目】 给定一个等概率随机产生1~5的随机函数rand1To5如下: public int rand1To5() {return (int) (Math.random() * 5) + 1; }除此之外不能使用任何额外的随机机制,请用rand1To5实现等概率随机产生1~7... 阅读全文
posted @ 2015-08-11 15:00 微博和csdn还有你 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 给定⼀一个字符串str和它的⼀一个最长回⽂文⼦子序列strLPS,返回字符串str在任意 位置添加最少字符后,整体都是回⽂文串的其中⼀一种结果。例如:str="AB1C2DE34F3GHJ21KL"; strLPS="1234321"; 返回:"ABLK1C2DEJHG3F4F3GHJED2C1KL... 阅读全文
posted @ 2015-08-11 14:28 微博和csdn还有你 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 左程云华中科技⼤大学本科,计算机科学与技术专业 芝加哥⼤大学硕⼠士,计算机科学专业 曾经在IBM、百度⼯工作刷题5年的算法热爱者 著有《程序员代码⾯面试指南》,即将出版发⾏行 QQ: 303233886 欢迎骚扰,我估计你们问的题我都刷过...笔试过程考试内容为基础中的基础,看好书即可拿下,因为... 阅读全文
posted @ 2015-08-11 13:06 微博和csdn还有你 阅读(276) 评论(0) 推荐(0) 编辑
摘要: update point set point.boundry=b_point.p_index from point,b_point where point.point_x_y=b_point.point_x_y;select count(*) from point,b_point where po... 阅读全文
posted @ 2015-08-10 20:46 微博和csdn还有你 阅读(129) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int i = 8; printf("%d\n",++i); printf("%d\n",--i); printf("%d\n",i++); printf("%d\n",i--); printf("%d\n",... 阅读全文
posted @ 2015-08-10 15:08 微博和csdn还有你 阅读(467) 评论(0) 推荐(0) 编辑
摘要: #include int value =0; void printvalue() { printf("value = %d/n",value); };int main(){ int value = 0; value =1; printf... 阅读全文
posted @ 2015-08-10 14:58 微博和csdn还有你 阅读(283) 评论(0) 推荐(0) 编辑
摘要: create table point( id int primary key auto_increment ,point_x_y text,boundry bool );一、sql语句1.操作数据库 (1)创建数据库 CREATE DATABASE [IF NOT EXISTS]... 阅读全文
posted @ 2015-08-08 14:18 微博和csdn还有你 阅读(244) 评论(0) 推荐(0) 编辑