前几天突然看到一段代码,虽然很简单,但引起了我的一些感慨…… 1 #include 2 3 int main() 4 { 5 int a, b; 6 scanf("%d %d", &a, &b); 7 Swap(a, b); 8 ...
分类:
其他好文 时间:
2014-11-15 21:33:35
阅读次数:
142
服务器环境要求 硬盘 20G以上 ,必须高于1G的物理内存,交换空间一般为内存的2倍,例如:1G的内存可以设置swap 分区为3G大小在Root用户下执行以下步骤:修改用户的SHELL的限制,修改/etc/security/limits.conf文件oracle soft nproc 204...
分类:
数据库 时间:
2014-11-14 22:36:58
阅读次数:
368
systat能实时查看各种信息systat-pigs默认值CPUsystat-iostat硬盘IOsystat-swap交换分区systat-mbufs网络缓冲区systat-vmstat虚拟内存systat-netstat网络systat-icmpICMP协议systat-ipIP协议systat-tcpTCP协议systat-ifstat网卡显示PCI总线设备信息pciconf-lv显示内核加载的模..
分类:
其他好文 时间:
2014-11-14 15:47:38
阅读次数:
223
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
其他好文 时间:
2014-11-14 14:22:50
阅读次数:
164
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:
其他好文 时间:
2014-11-14 08:08:24
阅读次数:
197
最近发现云服务器上的Oracle 11g在导出时报错,如下:.... 正在导出后期表活动. 正在导出实体化视图. 正在导出快照日志EXP-00008: 遇到 ORACLE 错误 1455ORA-01455: 转换列溢出整数数据类型EXP-00000: 导出终止失败从网上搜了半天,有很多种说法:1. ...
分类:
数据库 时间:
2014-11-13 18:19:15
阅读次数:
205
1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int maxn=10000; 7 int f[maxn]; 8 void swap(int &a,int &b){int t=a;a=b;b=t;} 9 1...
分类:
编程语言 时间:
2014-11-13 06:56:05
阅读次数:
224
代码热加载跟自动更新无关,主要目的是在程序运行的时候动态的替换代码,从而实现不重启程序而更新代码的目的。最理想的情况当然是我修改完代码并保存,然后就可以直接在游戏中看到修改后的效果,这个在实际开发过程中会大大提高效率。 即便达不到理想情况,我们也希望可以实现部分热加载,从而简化操作。例如我们可以仅仅对配置文件、消息文件、界面文件实现热加载,这样策划更新数据后可以直接在游戏中看结果,而不需要重新打开...
分类:
其他好文 时间:
2014-11-12 16:38:58
阅读次数:
120
1 #include"string.h" 2 #include"malloc.h" 3 4 5 void swap(int a,int b) 6 { 7 int temp; 8 temp=a; 9 a=b;10 b=temp;11 }12 13 int get_...
分类:
编程语言 时间:
2014-11-11 20:36:56
阅读次数:
204
可恶,公司把百度云盘,笔记什么的都封了额。好麻烦,考虑到公司的IT能力比较强,就不使用网上的通用代理服务器了,我还是自己DIY一个吧。
PS:充分利用我的云服务器的剩余价值,好呆也是个一个月70几块钱租用的。...
分类:
其他好文 时间:
2014-11-10 15:31:15
阅读次数:
206