传送门 题解传送门 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<vector> #include<cstdio> #include<queue> #includ ...
分类:
其他好文 时间:
2018-03-12 22:57:58
阅读次数:
248
1.简述 private、 protected、 public、internal 修饰符的访问权限 答 private : 私有成员, 在类的内部才可以访问(只能从其声明上下文中进行访问)。 protected : 保护成员,该类内部和从该类派生的类中可以访问。 Friend:友元 ,声明 frie ...
传送门 辣鸡抄题解选手。 发现对于询问,每棵树只要把询问的两个点长在该长的位置了,它多长了些什么点,包括不该长的点都无所谓。那么让每棵树先长完了再询问就好。、 也就是说问的是有n棵树,每次让所有树长出一个节点,一开始都从1开始长,然后会修改一个区间的树的长的位置。 先让所有节点长出来, 给每个更换生 ...
分类:
其他好文 时间:
2018-03-10 17:48:47
阅读次数:
185
C++重载输入流 c++ include using namespace std; struct Point { int x, y; Point(int xx, int yy):x(xx), y(yy) {} Point():x(0), y(0) {} friend ostream& operato ...
分类:
编程语言 时间:
2018-03-10 00:09:44
阅读次数:
158
Ekka and his friend Dokka decided to buy a cake. They both love cakes and that's why they want to share the cake after buying it. As the name suggeste ...
分类:
其他好文 时间:
2018-03-06 17:08:07
阅读次数:
161
A friend of yours has taken the job of security officer at the Star-Buy Company, a famous depart- ment store. One of his tasks is to install a video s ...
分类:
其他好文 时间:
2018-03-04 14:42:45
阅读次数:
162
7.1定义抽象数据类型Sales_data类头文件 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 class Sales_data 5 { 6 friend Sales_data add(const Sales_da ...
分类:
其他好文 时间:
2018-03-03 22:27:15
阅读次数:
245
什么是“对用户友好” 当我提到一个工具“对用户不友好”(user-unfriendly)的时候,我总是被人“鄙视”。难道这就叫“以其人之道还治其人之身”?想当年有人对我抱怨 Linux 或者 TeX 对用户不友好的时候,我貌似也差不多的态度吧。现在当我指出 TeX 的各种缺点,提出新的解决方案的时候 ...
分类:
其他好文 时间:
2018-03-03 14:12:36
阅读次数:
155
常用: A区域【顶部LOGO行】对应文件:/dede/templets/index2.htm【常用】 和/dede/templets/index_top2.htm B区域【顶部LOGO下的黑色背景行】对应文件:同上 C区域【主体左侧】对应文件:/dede/templets/index_menu2.h ...
分类:
其他好文 时间:
2018-03-02 18:36:02
阅读次数:
376
类中重载运算符不需要一定是成员函数,也可以声明为友元函数。 class person{public://作为类的成员函数,重载运算符参数只需要右操作值即可 friend bool operator<(const Person& arg1, const Person& arg2);private: i ...
分类:
编程语言 时间:
2018-02-27 23:42:07
阅读次数:
540