码迷,mamicode.com
首页 >  
搜索关键字:after    ( 6037个结果
vector的out_of_range exception
今天碰到一个复位问题,log中的信息是:terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check从网上找到对应的错误,应该是vector随机索引时越界导致的异常。...
分类:其他好文   时间:2014-10-14 16:28:48    阅读次数:195
LeetCode——Remove Nth Node From End of List
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:其他好文   时间:2014-10-14 14:52:58    阅读次数:168
启动页分为4页,最后一页有一个按钮,点击跳转到主页面
代码效果为:启动页分为4页,最后一页有一个按钮,点击跳转到主页面。上代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. UIScrol...
分类:其他好文   时间:2014-10-14 14:25:58    阅读次数:223
poj3465(贪心+优先队列)
Battle Time Limit: 2000MS   Memory Limit: 131072K Total Submissions: 1851   Accepted: 455 Description You're Zhu Rengong, a formidable hero. After a number of challenging...
分类:其他好文   时间:2014-10-13 13:44:39    阅读次数:215
How I explained Design Patterns to my wife: Part 1
IntroductionMe and my wife had some interesting conversations onObject Oriented Design principles. After publishing the conversation on CodeProject, I...
分类:其他好文   时间:2014-10-12 19:25:48    阅读次数:231
利用快慢下标操作字符串数组
1.去除掉多余的空格:e.g. Before: Life___is__short___I___use___python_'\0'(下划线为空格) After: Life_is_short_I_use_python'\0'(去除掉多余的空格)去掉空格比较简单,我们可以通过逐个判断字符,如果有连续的空....
分类:编程语言   时间:2014-10-12 00:36:36    阅读次数:254
页面跳转的时候工具条隐藏
当两个页面跳转的时候,如果两个页面中的工具条的时候,工具条隐藏。上代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.tit...
分类:其他好文   时间:2014-10-11 13:07:25    阅读次数:182
UITextView上显示txt文件中的文字
效果图:代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. UITextView *textView = [[UITextVi...
分类:其他好文   时间:2014-10-11 12:36:05    阅读次数:155
翻书效果的实现
效果图:代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //初始化背景图 [self initBackgroundView]...
分类:其他好文   时间:2014-10-11 12:02:35    阅读次数:210
Trapping Rain Water
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:移动开发   时间:2014-10-11 05:30:54    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!