09 2014 档案
复制拷贝函数+重载operator=
摘要:首先,如下写法:Class A = B;Class A;A = B;并不等价,前者等价于A(B),后者等价于A.operator=(B) 问题源于我想要用类似如下写法完成复制拷贝函数Class(Class &t) { *this = t;} 尝试重载operator=,由于写挂了,或者说是... 阅读全文
posted @ 2014-09-30 00:26 Gemmeg 阅读(189) 评论(0) 推荐(0)
Reconfigure CentOS+freeradius+daloradius again
摘要:Make some notes~ http://www.haiyun.me/archives/centos-freeradius-daloradius-ros.html参照上文进行配置首先是http服务,mysql服务的安装,然后是php,其中要加上php-pear(php扩展包)httpd服务会... 阅读全文
posted @ 2014-09-26 20:59 Gemmeg 阅读(273) 评论(0) 推荐(0)
Codeforces Round #265 (Div. 2)
摘要:A.inc ARG 感觉题意不是很清楚,看样例才看懂,就是一串二进制数,左边是低位,就扫一遍记录下改变的bit数#include #include #include using namespace std;const int maxn = 200;int n, cnt;char lis[maxn]... 阅读全文
posted @ 2014-09-11 16:27 Gemmeg 阅读(265) 评论(0) 推荐(0)
Try to config LAMP+Freeradius+daloRADIUS on CentOS7
摘要:Just follow this:http://www.haiyun.me/archives/centos-freeradius-daloradius-ros.html, and I will list something different in CentOS7#1:CentOS7 replace... 阅读全文
posted @ 2014-09-10 15:48 Gemmeg 阅读(967) 评论(0) 推荐(0)