今天上了web数据管理,老师布置了一个简单的exercise,题目如下: Question : Consider the following documents: d1 = I like to watch the sun set with my friend. d2 = The B...
分类:
Web程序 时间:
2015-05-12 20:49:58
阅读次数:
132
转载http://blog.sina.com.cn/s/blog_69dd1a090101fc59.html问题始于学习数据结构,自己编写一个单链表,其中用到了重载输出运算符 class List{2 friend std::ostream& operator & slist);3 ...
分类:
其他好文 时间:
2015-05-11 21:42:47
阅读次数:
124
//实现mstring类,//未实现友元函数+,> 1 #include 2 #include 3 #include 4 #include 5 class mstring{ 6 friend mstring& operator+(const mstring&str1,const ...
分类:
其他好文 时间:
2015-05-11 19:58:03
阅读次数:
116
Problem Description
These days, you can do all sorts of things online. For example, you can use various websites to make virtual friends. For some people, growing their social network (their friend...
分类:
其他好文 时间:
2015-05-10 09:56:55
阅读次数:
156
C++实现运算符重载
#include
using namespace std;
//#define SHOW
class Int
{
friend bool operator>(const Int& x,const Int& y);
//friend int operator>(const Int& x,const Int& y);
friend bool ope...
分类:
编程语言 时间:
2015-05-09 13:26:31
阅读次数:
112
When I wrote about launching a prototype of a new joind.in API, quite a few people started to try it out. My friend David Soria Parra emailed me to point out that many of the numbers in the API wer...
分类:
Web程序 时间:
2015-05-07 12:46:42
阅读次数:
127
#includeclass Bclass;class Aclass{public: friend Bclass; void func() { pB->funcB(); } int data; Bclass* pB;};class Bclass{pub...
分类:
编程语言 时间:
2015-05-06 12:24:50
阅读次数:
221
#include
template class DoubleList;
/*对于DoubleList这个类的前向引用声明*/
template class DoubleListNode {
//对DoubleListNode这个模板类进行声明
private:
friend class DoubleList; //将DoubleList这个类声明为自己的友元,
//然...
分类:
其他好文 时间:
2015-04-26 12:25:56
阅读次数:
144
One of my friends asked me to do a favor for her. She said her friend deleted some important chat messages by “accident”, and her friend want to recov...
分类:
其他好文 时间:
2015-04-26 10:48:03
阅读次数:
276
本文译自How to sort NSArray with custom objects。我们开发的每个程序都会使用到一些数据,而这些数据一般被封装在一个自定义的类中。例如一个音乐程序可能会有一个Song类,聊天程序则又一个 Friend类,点菜程序会有一个Recipe类等。有时候我们希望在程序中显示...
分类:
移动开发 时间:
2015-04-24 16:08:44
阅读次数:
147