一、 初始化 string s1="i love you"; string s2(s1); //把s2初始化为s1的一个副本,注意不能写成string s2; s2(s1); string s3("value"); //将s3初始化一个字符串面值副本 string s4(...
分类:
编程语言 时间:
2015-09-09 21:16:50
阅读次数:
256
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4324Triangle LOVETime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total S...
分类:
编程语言 时间:
2015-09-09 17:27:14
阅读次数:
269
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4324Triangle LOVEDescriptionRecently, scientists find that there is love between any of two people. For ...
分类:
其他好文 时间:
2015-09-08 22:05:43
阅读次数:
196
包括NSString不可变字符串和NSMutableString可变字符串,前者是后者的父类标准方法名中为(const char *)的参数为C语言字符串,例"I love you";OC中字符串都用@""包含,输出字符串的格式控制符为%@%@格式控制符可以输出任何OC对象,比如字符串、数组等代码中...
分类:
其他好文 时间:
2015-09-08 21:45:48
阅读次数:
166
DescriptionIt is a little known fact that cows love apples. Farmer John has two apple trees (which are conveniently numbered 1 and 2) in his field, ea...
分类:
移动开发 时间:
2015-09-05 19:13:18
阅读次数:
249
转自:http://blog.csdn.net/love_se/article/details/7754274首先是安装Go这里有很详细的安装说明,http://code.google.com/p/golang-china/wiki/Install或者http://golang.org/doc/in...
在Android开发中,Json是一种客户端与服务器端交互的一种语言,它语法简单,最好的是目前市面上有很便捷的轮子可以对他进行解析。例如,Gson就是google提供的一款用于解析或者生成Json的库,可以直接将Json字符串映射成对应的实体类,十分方便。下面我总结一下利用Gson解析Json的用法以及我遇到的问题。最简单对象的解析:例如下边这段Json字符串:{
text: "Love",...
分类:
移动开发 时间:
2015-08-28 21:30:18
阅读次数:
332
DescriptionFarmer Johnson's Bulls love playing basketball very much. But none of them would like to play basketball with the other bulls because they ...
分类:
其他好文 时间:
2015-08-28 21:12:17
阅读次数:
167
Problem Description Coach Pang and Uncle Yang both love numbers. Every morning they play a game with number together. In each game the following will....
分类:
其他好文 时间:
2015-08-27 20:44:10
阅读次数:
176
HDU4324 - Triangle LOVE 拓补排序...
分类:
编程语言 时间:
2015-08-27 11:15:15
阅读次数:
203