题目:将一个英文句子翻转,比如:the sky is blue 翻转后变为:blue is sky the分析:我的实现方法是,利用栈将单词存储起来,然后再顺序拿出来,单词进栈还需注意添加空格。主要代码:class Solution {public: void reverseWords(string...
分类:
其他好文 时间:
2015-04-06 17:04:02
阅读次数:
197
/* Zepto v1.0-1-ga3cab6c - polyfill zepto detect event ajax form fx - zeptojs.com/license */;(function(undefined) { if (String.prototype.trim === und....
分类:
其他好文 时间:
2015-04-06 17:02:13
阅读次数:
268
1.‘+’;加号运算符‘+’在java中除了具有假发运算的功能外,还有连接两个字符的功能public class HelloWorld { int i=33; int j=44; char c1='a'; char c2='b'; public static void main(String arg...
分类:
编程语言 时间:
2015-04-06 17:01:47
阅读次数:
197
一.课堂内容 这周的课讲的内容比较多,有struct结构体,interface接口,以及C#数组中的一些特性,比如特殊的多维数组的声明方式,以及不规则数组还有模版,堆栈,字典等等,还有字符串string以及正则表达式的一些内容。二.学习内容 1.首先练习了关于接口的相关内容,以前在学C++,和J.....
public?List<?>?find(final?String?queryString,?final?Object...?values)?throws?DataAccessException 定义实参个数可变的方法? 只要在一个形参的“类型”与“参数名”之间加上三个连续的“.”(即“....
分类:
编程语言 时间:
2015-04-06 15:50:55
阅读次数:
151
#include
#include
using namespace std;
class Student
{
public:
Student() {}
Student( const string& nm, int sc = 0 ): name(nm), score(sc){}
//(1)下面的const干神马?_____________
void set_stu...
分类:
其他好文 时间:
2015-04-06 15:50:01
阅读次数:
138
//编写一个函数reverse_string(char * string)(递归实现)
//实现:将参数字符串中的字符反向排列。
//要求:不能使用C函数库中的字符串操作函数。
#include
#include
void reverse_string(char const * string)
{
assert( string != NULL );
if( *string != '\0' ...
分类:
编程语言 时间:
2015-04-06 15:44:43
阅读次数:
186
int.prase(String)可以将一个数字内容的字符串转换成为一个整形,这个函数在平常的带界面的开发过程中还是比较有实际价值的比如你有一个text输入框,需要用户输入一个数字,但是读取到的将是一个String,这时使用int.prase这个函数,就可以方便的从所需要的数字信息从中提取出...
分类:
其他好文 时间:
2015-04-06 15:40:34
阅读次数:
104
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-04-06 15:30:40
阅读次数:
107
System.String具备不可修改性,在程序中这样的特性容易产生性能上的问题。针对这个问题.NET提供的StringBuilder类可以解决类似的问题。 String 和 StringBuilder 对象都可以很方便地处理字符串,它们具备各自的特点,下面将分别进行说明: System.Stri....
分类:
其他好文 时间:
2015-04-06 15:26:14
阅读次数:
109