You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston ...
分类:
其他好文 时间:
2016-04-11 22:23:40
阅读次数:
167
去除所有格式的json字符串{"data":[{"friend":[{"address":"广州","name":"好友1"},{"address":"深圳","name":"好友2"}],"username":"包青天"},{"friend":[],"username":"bqt"}]," ...
分类:
其他好文 时间:
2016-04-10 06:48:04
阅读次数:
149
题目: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ...
分类:
其他好文 时间:
2016-04-06 10:54:36
阅读次数:
170
w5d5 Today, I chat with my friend Zhu Zhu about my observation to those who study overseas. During our talk, I asked him why most friends replied me l ...
分类:
其他好文 时间:
2016-04-03 20:19:17
阅读次数:
197
1.原始版本(拷贝构造和赋值运算符重载时,需要重新开辟空间)#include<iostream>
#include<string>
usingnamespacestd;
classString
{
friendostream&operator<<(ostream&os,constString&S);
public:
String(char*str="")
:_str(newchar[..
分类:
编程语言 时间:
2016-04-01 06:43:42
阅读次数:
494
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston ...
分类:
其他好文 时间:
2016-03-27 07:06:37
阅读次数:
146
题目链接: A. Amity Assessment Bessie the cow and her best friend Elsie each received a sliding puzzle on Pi Day. Their puzzles consist of a 2?×?2 grid and
分类:
其他好文 时间:
2016-03-19 14:38:02
阅读次数:
255
注意, [1]友元的关系是单向的。如果声明类B是类A的友元类,则类B中的成员函数可以访问类A中的private成员,但类A中的成员函数不能访问类B中的private成员。 [2]友元的关系不能传递。如果类B是类A的友元类,类C是类B的友元类,不等于类C是类A的友元类。 Remark:关于谁在前面的问
分类:
其他好文 时间:
2016-03-16 00:53:40
阅读次数:
218
题目:http://poj.org/problem?id=3580 Description Your friend, Jackson is invited to a TV show called SuperMemo in which the participant is told to play a
分类:
其他好文 时间:
2016-03-15 18:40:57
阅读次数:
182