码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
string 与char* char[]之间的转换
1、首先必须了解,string可以被看成是以字符为元素的一种容器。字符构成序列(字符串)。有时候在字符序列中进行遍历,标准的string类提供了STL容器接口。具有一些成员函数比如begin()、end(),迭代器可以根据他们进行定位。注意,与char*不同的是,string不一定以NULL('\0...
分类:其他好文   时间:2015-04-09 13:41:42    阅读次数:82
UIScrollView的简单页面
#import "ViewController.h"@interface ViewController (){ UIImageView *imageview2; UIScrollView *sv; UIPageControl *page;}@end@implementation ViewCon...
分类:其他好文   时间:2015-04-09 13:27:47    阅读次数:109
Binary Tree Maximum Path Sum--LeetCode
题目: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, 1 / 2 3 思路:刚开始思路...
分类:其他好文   时间:2015-04-09 11:52:49    阅读次数:107
使用迭代器删除 其中的一个
for (CXMLWrapperUserObj::VEC_USEROBJS::iterator itor = pVecAll.begin(); itor != pVecAll.end(); ) { CXMLWrapperUserObj *pSingleFlowerUserObj = *itor;Dr...
分类:其他好文   时间:2015-04-09 10:17:59    阅读次数:119
VBA 自动得到分数
' 将一个正数除以 y 返回一个整数或分数Function RFs(ByVal x As Integer) As String If x = 0 Then RFs = 0 Exit Function End If Dim div_result, div_...
分类:编程语言   时间:2015-04-09 10:13:51    阅读次数:190
python 学习笔记
>>> help(print)Help on built-in function print in module builtins:print(...) print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) ...
分类:编程语言   时间:2015-04-09 00:56:37    阅读次数:250
velocity 判断 变量 是否不是空或empty
原先的#if($mobile)这种写法是不准确的 ,请换成"$!{mobile}"!=""说明 : #if($mobile) 这种写法只能 对null 起作用也就是说#if($mobile) or receiver_mobile =:mobile #end如果mobile 参数 是 null, 那么...
分类:其他好文   时间:2015-04-09 00:56:02    阅读次数:177
今年暑假不AC
贪心基本题, 有助于理解贪心算法的思想#include #include using namespace std;struct Program{ int begin, end;} programs[100];/** 贪心: 贪心算法的基本步骤 :* 1、从问题的某个初始解出发。* 2、采用循环语句....
分类:其他好文   时间:2015-04-09 00:44:00    阅读次数:141
js 从开始和结束时间得到中间所有天
今天在论坛中看到一个帖子,给定输入的字符型日期和结束的字符型日期,计算中间间隔的每一天的日期。正好项目不忙,就动手写了一下,记录下来吧。     原问题 var start_time = "2015-2-1" var end_time = "2015-3-1" 需求得到开始和结束时间之间所有天 return [ '2015-2-1',"2015-2-2" ... "2015-2-28"...
分类:Web程序   时间:2015-04-08 23:26:58    阅读次数:285
Day10
1 delegate 代理@protocol AppInfoViewClassDelegate -(void)appInfoViewDownLoad:(AppInfoViewClass *)appInfoView;@end@property (nonatomic,weak) id delegate;...
分类:其他好文   时间:2015-04-08 22:55:47    阅读次数:149
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!