实现将一个句子中的单词全部翻转。例:“I am a boy”转“bvoid reverse(char *start, char *end){if(start==NULL || end==NULL)return; while(start<end){ char temp=*start...
分类:
其他好文 时间:
2014-09-29 12:50:30
阅读次数:
112
———Java培训、Android培训、iOS培训、.Net培训、期待与您交流! ———1、父类必须写在子类之前 1 #import 2 @interface Student : Person 3 @end 4 5 @implementation Student 6 @end 7 8 @int...
分类:
其他好文 时间:
2014-09-29 12:11:40
阅读次数:
257
代码如下: template void reverse(It begin, It end)
{ while(begin != end) { --end; if(begin != end) std::swap(*begin++, *end); }
} 注意几点: 1.不能一开始...
分类:
其他好文 时间:
2014-09-28 21:37:45
阅读次数:
232
index.php: $smarty = new Smarty; $smarty->assign(‘articleTitle‘, "Psychics predict world didn‘t end"); $smarty->display(‘index.tpl‘); index.tpl: {$articleTitle|cat:" yesterday."} OUTPUT: Psychics p...
分类:
其他好文 时间:
2014-09-28 20:29:45
阅读次数:
203
代码选择1 区域代码选择按Shift选择整(行)块代码,可配合四个方向键(左右键:选择单个字符,上下键:上下行的当前列)、Home(当前行首)、End(当前行尾)、PgUp(当前页首)和PgDn(当前页尾)使用。2 单词(逐词)选择Ctrl + Shift +方向键(左键、右键)可一次选择整个单词。...
分类:
其他好文 时间:
2014-09-28 20:25:15
阅读次数:
169
以前在开发的时候遇到过一个需求,就是要按照某一列进行分组后取前几条数据,今天又有同事碰到了,帮解决了之后顺便写一篇博客记录一下。 首先先建一个基础数据表,代码如下: IF OBJECT_ID(N'Test') IS NOT NULL BEGIN DROP TABLE Test END CREATE ...
分类:
数据库 时间:
2014-09-28 19:23:55
阅读次数:
331
依据上面的表信息输出以下的结果:以下是建库和表结构据:create table DeptSales( deptID int, SubjMonth int , sales int , deptname varchar(50))insert into deptsales (deptid ,subjmon...
分类:
数据库 时间:
2014-09-28 13:45:22
阅读次数:
188
Problem Description
A range is given, the begin and the end are both integers. You should sum the cube of all the integers in the range.
Input
The first line of the input is T(1
Each...
分类:
其他好文 时间:
2014-09-28 01:35:40
阅读次数:
151
--开发一个包
--建立一个包,在该包中,我定义类型test_cursor,是个游标。 如下:
Sql代码
create or replace package testpackage as TYPE test_cursor is ref cursor; end testpackage;
--开始编写分页过程
create or replace proc...
分类:
数据库 时间:
2014-09-28 01:15:30
阅读次数:
249
———Java培训、Android培训、iOS培训、.Net培训、期待与您交流! ———方法与函数的区别1、方法: 1、对象方法都是以减号 - 开头 2、对象方法的声明必须写在@interface @end之间 3、对象方法的实现必须写在@implementation @end 之间 4、...
分类:
其他好文 时间:
2014-09-27 22:47:30
阅读次数:
204