2)、从一本通俗杂志中摘录几段文字,并删除所有不会影响理解的文字,实现压缩。例如在“This is the dog that belongs to my friend”中,删除“is”“the”“that”和“to”之后,仍然能传递相同意思。用被删除的单词数与原本的总单词数之比来衡量文本中的冗余度。...
分类:
其他好文 时间:
2015-09-01 19:53:51
阅读次数:
220
As your coach and friend, I can assure you the door toall the best things in the world will open to you but the key to that door isin your hand. You must do your part, you must faithfully follow the plans youmake and take the actions you plan. You must nev...
分类:
其他好文 时间:
2015-08-31 23:47:03
阅读次数:
298
题目连接http://poj.org/problem?id=3580SuperMemoDescriptionYour friend, Jackson is invited to a TV show called SuperMemo in which the participant is told t...
分类:
其他好文 时间:
2015-08-31 19:07:41
阅读次数:
233
C++不是完全的面向对象语言,而是一个混合产品。如果一个函数被声明为friend,就意味着它不是这个类的成员函数,却可以修改该函数的私有成员,而且必须被列在该类的定义中,因此可以认为它是一个特权函数#include "iostream"#include "cstring"using namespac...
分类:
编程语言 时间:
2015-08-30 19:20:56
阅读次数:
176
1. 面向对象的真实意义并非是数据以及操作数据的函数应该被捆绑在一起,而是要求数据应该尽可能地被封装.封装意味着数据的不可见,越多的东西被封装,用户对其直接的接触就越少,用户代码和被封装内容的编译相关度就越低,"包裹弹性"就越高,也就是说,封装性越好,对代码的更改所造成的影响就越低.2. non-m...
分类:
编程语言 时间:
2015-08-30 19:20:15
阅读次数:
267
click here ~~ ***A. Keyboard***Our good friend Mole is trying to code a big message. He is typing on an unusual keyboard with characters arranged in following way...
分类:
其他好文 时间:
2015-08-29 12:38:44
阅读次数:
185
#ifndef _DCLIST_
#define _DCLIST_
#include
using namespace std;
#include
template class DCList;
template
class Node
{
friend class DCList;
public:
Node():data(0),prio(NULL),next(NULL){}
Node(T...
分类:
编程语言 时间:
2015-08-29 09:48:41
阅读次数:
210
#include
#include
using namespace std;
struct Node
{
int data;
Node* next;
Node(int d = int()):data(d){}
};
class List
{
friend class T;
public:
List():first(NULL){}
void Insert(int a[],int ...
分类:
其他好文 时间:
2015-08-27 21:14:49
阅读次数:
148
#include
#include
using namespace std;
class Test;
class Base {
protected:
int mltem;
private:
int mCount;
friend class Test;
};
class Sub:public Base {
public:
void...
分类:
编程语言 时间:
2015-08-27 11:02:42
阅读次数:
154
It's been a long day without you my friend 没有老友你的陪伴 日子真是漫长 And I'll tell you all about it when I see you again 与你重逢之时 我会敞开心扉倾诉所有 We've come a long way from where we began 回头凝望 我们携手走过漫长的旅程 Oh I'll...
分类:
其他好文 时间:
2015-08-26 20:07:45
阅读次数:
233