开发过程中处理数据的时候会遇到的一些问题
给NSString 创建一个类目,创建+号方法
@implementation
NSString (NSNumberChange)
+ (NSString
*)stringJsonValue:(id)JsonValue
{
NSString
*string = nil;
if
(JsonValue == [NS...
分类:
其他好文 时间:
2015-03-04 13:00:58
阅读次数:
138
var str = "abcdefg", /**将字符串通过 split 转换成数组**/ arr = str.split(""), newstr=""; console.log("反转前:"+str) /**实现方法**/ functio...
分类:
编程语言 时间:
2015-03-02 14:34:26
阅读次数:
130
map.toString()是这样子的~
{welcome-file-list={welcome-file=[index.html, {a=[{b=[{c=[c1c1c1c1c1c1, c2c2c2c2c2c2]}, b2b2b2b2]}, 22222, 33333]}, index.jsp, default.html, default.htm, default.jsp]}, display-n...
分类:
编程语言 时间:
2015-02-27 21:39:08
阅读次数:
259
设计一个函数轮转字符串。例如将“abcd”转为"dabc"递归实现方式: 1 /*将字符串循环右移n个单位*/ 2 void move(char s[], int n) 3 { 4 if( n == 0) 5 return ; 6 else{ 7 in...
分类:
其他好文 时间:
2015-02-26 13:13:53
阅读次数:
111
《程序员编程艺术:面试和算法心得》http://taop.marchtea.com/https://github.com/julycoding/The-Art-Of-Programming-By-July/tree/master/ebook/code/python1.1旋转字符串1:defsimpleShift(str,n):
2:tmpStr=str[n:]+str[:n]
3:returntmpStr
4:
5:defLeftShiftOne(str):..
分类:
编程语言 时间:
2015-02-20 00:14:06
阅读次数:
156
题目例如以下:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarifica...
分类:
其他好文 时间:
2015-02-11 14:16:19
阅读次数:
128
用#宏,见代码#include #define enum_to_string(x) #xenum sex{ boy, girl,};int main(){ std::cout << enum_to_string(sex::boy) << std::endl; system("...
分类:
编程语言 时间:
2015-02-06 18:21:19
阅读次数:
194
功能:翻转字符串 ,翻转数组, 用于STL的翻转。
头文件:
例子:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
char s[100];...
分类:
其他好文 时间:
2015-02-04 14:42:11
阅读次数:
88