码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
Ruby Class
类定义:class 类名 类定义end※类名大写字母开始!!!构造方法(initialize)类名调用new方法的时候,触发的一个方法。def initialize(my_name = "Voctrals") @name = my_nameend@name,实例变量,属于一个实例,在实例中有...
分类:其他好文   时间:2014-10-20 11:15:36    阅读次数:243
Ruby First
print()puts()p -Ks, -Kuruby 能够正常的计算算数表达式,8+4/2 = 10 而不是 6注释 # 行首,行中 =begin和=end之间的都会视为注释 没有行中的注释,注释掉一行中间的某些东西控制 if - then - end # then 可以省略 if -...
分类:其他好文   时间:2014-10-19 21:20:43    阅读次数:231
c++中的迭代器 iterator
迭代器iterator的作用类似于指针。iterator只有针对制定的容器才有效。例如:vector vec;vector::iterator itr; 对于vec来说,itr.begin()指向的是vec的第一个元素。Itr.end()指向的是vec的最后一个元素的下一个元素(作为哨兵,实际不存在...
分类:编程语言   时间:2014-10-19 19:54:16    阅读次数:211
SQL中的case when then else end用法
转载自http://lj.soft.blog.163.com/blog/static/7940248120109215191358/Case具有两种格式。简单Case函数和Case搜索函数。--简单Case函数CASE sex WHEN '1' THEN '男' WH...
分类:数据库   时间:2014-10-19 19:49:39    阅读次数:240
C 实现strcmp,strcpy,strcat函数
基于C语言的strcmp,strcpy,strcat函数的实现。C语言是一个程序员的基础,一定要重视。 char* strcat ( char * dst , const char * src ) { char * cp = dst; while( *cp ) cp++; /* find end of dst */ while( *cp...
分类:其他好文   时间:2014-10-19 18:44:12    阅读次数:239
ARM工具MDK快捷键
keil常用快捷键(1)“F7”:编译(2)“F9”:添加/取消断点(3)“ctrl”+“F5”:调试(4)“tab”:将选中的内容整体右移(5)“shift”+“tab”:将选中的内容整体左移(6)“Home”:将光标移至行首(7)“End”:将光标移至行末(8)“Ctrl”+“>”:光标从当前位...
分类:其他好文   时间:2014-10-19 18:31:35    阅读次数:287
查询所有数据库表的结构,这一段代码直接在新建查询里面执行 、寒龙转自elf
SELECT 表名 = case when a.colorder=1 then d.name else '' end, 表说明 = case when a.colorder=1 then isnull(f.value,'') else '' end, ...
分类:数据库   时间:2014-10-19 18:25:51    阅读次数:224
leetcode第19题--Remove Nth Node From End of List
Problem: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. ...
分类:其他好文   时间:2014-10-19 01:12:55    阅读次数:190
黑马程序员——OC语言基本语法知识(三)
*** 类方法 ***声明和实现:@interface Person : NSObject+ (void) age; //声明一个类方法@end@implementation Person+ (void) age //类方法的实现{NSLog(@"abcd");}@endint main(){[P....
分类:编程语言   时间:2014-10-18 23:29:59    阅读次数:253
黑马程序员_ Objective-c 面向对象笔记详解
1)类,对象,方法类类名:1) 类名的第一个字母必须是大写2) 不能有下划线3) 多个英文单词,用驼峰标识类的声明和实现类的声明@interface 类名 : NSObject{ @public 成员变量;}方法声明;@end类的实现@implementation 类名方法实现;@end举例说明.....
分类:其他好文   时间:2014-10-18 22:17:59    阅读次数:516
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!