ZOJ Problem Set - 3811
Untrusted Patrol
Time Limit: 3 Seconds
Memory Limit: 65536 KB
Edward is a rich man. He owns a large factory for health drink production. As a matter of course, ...
分类:
其他好文 时间:
2014-09-09 13:27:39
阅读次数:
232
封装(Encaplusation):
指:隐藏对象的属性和实现细节,只对外提供公共访问方式
优点:
1。将变化隔离
2.便于使用
3.提高重要性
4.提高安全性
封装原则:
1.将不需要对外提供的的内容隐藏起来
2.将属性隐藏,进对外提供其公共访问方式
事例代码:
class man
{
private int age;//年龄
private...
分类:
编程语言 时间:
2014-09-09 13:13:28
阅读次数:
163
构造函数:
构造函数,就是在构建 创造对象 时所调用的函数,作用就是给对象进行初始化
特点:
1.函数名和类名相同
2.不需要定义返回值类型
3.没有具体的返回值
作用:给对象进行初始化
注意:
1.默认构造函数的特点
2.多个构造函数是以重载的形式存在的
代码演示:
class man
{
private int ...
分类:
编程语言 时间:
2014-09-09 13:03:38
阅读次数:
231
Untrusted PatrolTime Limit: 3 Seconds Memory Limit: 65536 KBEdward is a rich man. He owns a large factory for health drink production. As a matter ...
分类:
其他好文 时间:
2014-09-08 10:44:56
阅读次数:
309
1.内核中提高I/O性能的新方法epollepoll是什么?按照man手册的说法:是为处理大批量句柄而作了改进的poll。要使用epoll只需要这三个系统调用:epoll_create(2),epoll_ctl(2),epoll_wait(2)。当然,这不是2.6内核才有的,它是在2.5.44内核中...
分类:
其他好文 时间:
2014-09-07 21:09:05
阅读次数:
435
Untrusted PatrolTime Limit:3 Seconds Memory Limit:65536 KBEdward is a rich man. He owns a large factory for health drink production. As a matter of co...
分类:
其他好文 时间:
2014-09-07 21:06:25
阅读次数:
363
第一次命令是 yum -y install *man*,此时应该是能找到标准c的库文件第二次是安装c++的帮助文档,wgetftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man.4.4.0.tar.bz2tar -xvflibstdc++...
分类:
其他好文 时间:
2014-09-07 14:43:35
阅读次数:
261
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-09-07 12:15:55
阅读次数:
292
LAST,LASTB(1) Linux System Administrator's Manual LAST,LASTB(1)NAME last, lastb - show listing of last logged in usersSYNOPSIS last [-R] [-num] [ -n n...
分类:
系统相关 时间:
2014-09-06 09:42:42
阅读次数:
308
TOP(1) User Commands TOP(1)NAME top - display Linux processesSYNOPSIS top -hv|-bcHiOSs -d secs -n max -u|U user -p pid -o fld -w [cols] The traditiona...
分类:
系统相关 时间:
2014-09-06 09:42:13
阅读次数:
517