码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
PASCAL的读入优化
没readkey的情况type Tstring=record s:array[0..maxn] of char; n:longint; end;procedure scan(var S:Tstring);beginS.n:=0; while not seekeoln do with S...
分类:其他好文   时间:2014-11-02 18:09:43    阅读次数:194
Python 字符串的方法及注释
capitalize()把字符串的第一个字符改为大写casefold()把整个字符串的所有字符改为小写center(width)将字符串居中,并使用空格填充至长度width的新字符串count(sub[,start[,end]])返回sub在字符串里边出现的次数,start和end参数表示范围,可选...
分类:编程语言   时间:2014-11-02 10:48:30    阅读次数:185
使用ScrollView缩放图片
ViewController.h @interface ViewController : UIViewController { UIScrollView *_scrollView; }ViewController.m #import "ViewController.h" @interface ViewController () @end @implementation ViewC...
分类:其他好文   时间:2014-11-02 09:32:21    阅读次数:176
表的头视图下拉放大效果
ViewController.h @interface ViewController : UIViewController { UIImageView *_imageView; } ViewController.m #import "ViewController.h" @interface ViewController () @end @implementation View...
分类:其他好文   时间:2014-11-02 09:30:42    阅读次数:129
LeetCode[Linked List]: Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is. ...
分类:其他好文   时间:2014-11-02 09:27:14    阅读次数:276
OC中类别、扩展、协议与委托
类别(category) @interface 已有类 (类别名) //....方法定义 @end...
分类:其他好文   时间:2014-11-01 23:14:20    阅读次数:271
Rubymine的启动问题
Today,IfoundoneinterstingproblemthatIcannotrestarttherubymine6.3.Step1,IexitRubymine6.3Step2,IdoubleclickRubymineinthestartmenumanytimesandnoresponse.Atthispoint,Iamverysurpersizedandhavetodigintowhathappensatback-end.Finally,Inoticedoneproblemnamedrubymine..
分类:其他好文   时间:2014-11-01 19:21:37    阅读次数:138
Java程序员笔试面试之String1
1.如何实现字符串的反转例如:“how are you”--->“you are how” public class InverseString { public void swap(char[] arr,int front,int end){//将char[]反转 while(front<end){ char temp=arr[end]; arr...
分类:编程语言   时间:2014-11-01 19:17:22    阅读次数:191
sort 对坐标 排序
bool compare(const pair &a,const pair&b) { return a.first v; v.push_back(make_pair(4,2)); v.push_back(make_pair(2,4)); sort(v.begin(),v.end(),compare);...
分类:编程语言   时间:2014-11-01 14:54:47    阅读次数:1098
发现了个很好的前端代码规范和最佳实践,mark一下
前端规范而又完整的编码规范并不多见,如果你想找一个完整的,推荐你看下下面的链接内容,千万不能错过。http://coderlmn.github.io/code-standards/另:jquery编码风格js篇如下:http://contribute.jquery.org/style-guide/js/jquery编码风格html篇如下:http://contribute.jq..
分类:其他好文   时间:2014-11-01 12:04:25    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!