码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
类的使用与继承
//长方形的类的声明与实现#import @interface Rect2 : NSObject{// float chang;// float w;}@property float chang;@property float w;- (float)sizeOfRect;@end#imp...
分类:其他好文   时间:2014-07-24 10:04:16    阅读次数:221
灰色预测
clearx0=[89677,99215,109655,120333,135823,159878,182321,209407,246619,300670];pre_num=10;n=length(x0);disp('级比检验')lambda=x0(1:end-1)./x0(2:end);range=...
分类:其他好文   时间:2014-07-23 22:23:07    阅读次数:321
python endswith和startwith
转载:http://blog.sina.com.cn/s/blog_5dd2af0901012rmn.html做文本处理的时候经常要判断一个文本有没有以一个子串开始,或者结束。Python为此提供了两个函数:S.startswith(prefix[, start[, end]]) -> bool如果...
分类:编程语言   时间:2014-07-23 16:58:31    阅读次数:289
2014.7.23日结
1.main函数可以递归吗?g++,vs2010是可以的2.int main(){ static int a=5; while(--a > 0){ cout 0){ cout << "before" << a << endl; main(); cout << "after" << a << end....
分类:其他好文   时间:2014-07-23 16:45:51    阅读次数:204
Objc中2维指针作为输出参数时由ARC及@autoreleasepool引发的血案
先看下面一个例子#import #import "AppDelegate.h"@interface Something : NSObject- (void)doWithError:(NSError **)outError;@end@implementation Something- (void)do...
分类:其他好文   时间:2014-07-23 16:44:01    阅读次数:212
pl/sql常用判断语句
语句一: IF-THEN IF 条件 THEN     执行语句 END IF;   语句二: IF-THEN-ELSE IF 条件 THEN      执行语句 ELSE      执行其他语句 END IF;   语句三: IF-THEN-ELSIF IF 条件1 THEN       执行语句1 ELSIF 条件2 THEN       执行语句2 ELSE...
分类:数据库   时间:2014-07-23 16:38:12    阅读次数:212
最短路径算法之五——邻接表
邻接表 邻接矩阵来存储图的信息相对于非完全图,会浪费大量的空间,同时在求最短路径的时候也会有多余的计算浪费时间。 使用邻接表可以节约这些浪费的时间。 这里介绍的是用数组模拟的邻接表: 定义begin[MAXN],end[MAXN],dis[MAXN],first[MAXN],next[MAX...
分类:其他好文   时间:2014-07-23 15:24:07    阅读次数:277
字符串的第几个
近日有个项目需要显示周几,一开始是这样写的//日期var dateObj = new Date().find('.sign_date').html((dateObj.getMonth() + 1) + '/' + dateObj.getDate()).end().find('.sign_week')...
分类:其他好文   时间:2014-07-23 15:22:46    阅读次数:185
LeetCode "Remove Nth Node From End of List"
Another Double pointer solution. 1A!class Solution {public: ListNode *removeNthFromEnd(ListNode *head, int n) { ListNode *p = NULL; ...
分类:其他好文   时间:2014-07-23 14:52:16    阅读次数:176
Remove Nth Node From End of List leetcode java
题目:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. Af...
分类:编程语言   时间:2014-07-23 12:20:26    阅读次数:243
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!