上一页 1 ··· 83 84 85 86 87 88 89 90 91 ··· 95 下一页
摘要: 改变字体颜色windows->Preferences->Java->Editor->Syntax Coloring右边选择Java 然后可以自由选择颜色了改变背景颜色windows->Preferences->General->Editor->Text Editors右边选择Appearance color options选Background color 选择背景颜色选Current line highlight 来改变 当前选中行 的颜色配色方案详细following:Annotations(注释): 107, 147, 186 浅蓝色Dep 阅读全文
posted @ 2012-04-19 21:39 byfei 阅读(329) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include<unistd.h>#include<sys/types.h>using namespace std;int main(){int i;if (fork() == 0){/* 子进程程序 */for (i = 1; i < 1000; i++)cout<<"子进程"<<i<<endl;}else{/* 父进程程序*/for (i = 1; i < 1000; i++)cout<<"父进程"<<i 阅读全文
posted @ 2012-03-15 16:04 byfei 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Linux下一个进程在内存里有三部份的数据,就是“数据段”,“堆栈段”和“代码段”,其实学过汇编语言的人一定知道,一般的CPU象I386,都有上述三种段寄存器,以方便操作系统的运行。“代码段”,顾名思义,就是存放了程序代码的数据,假如机器中有数个进程运行... 阅读全文
posted @ 2012-03-15 15:47 byfei 阅读(62) 评论(0) 推荐(0) 编辑
摘要: Linux下一个进程在内存里有三部份的数据,就是“数据段”,“堆栈段”和“代码段”,其实学过汇编语言的人一定知道,一般的CPU象I386,都有上述三种段寄存器,以方便操作系统的运行。“代码段”,顾名思义,就是存放了程序代码的数据,假如机器中有数个进程运行相同的一个程序,那么它们就可以使用同一 个代码段。 堆栈段存放的就是子程序的返回地址、子程序的参数以及程序的局部变量。而数据段则存放程序的全局变量,常数以及动态数据分配的数据空间(比如用malloc之类的函数取得的空间)。这其中有许多细节问题,这里限于篇幅就不多介绍了。系统如果同时运行数个相同的程序,它们之间就不能使用同一个堆栈段和... 阅读全文
posted @ 2012-03-15 15:46 byfei 阅读(221) 评论(0) 推荐(0) 编辑
摘要: #include <pthread.h>vector<uint> m_vectSelectDataHander;typedef map<int, int> templatemap;templatemap MapPthreadID;void *thread1(void*){int nPthread = MapPthreadID[pthread_self()];}for(int i=0;i<n;i++)m_vectSelectDataHander.push_back(0);for(uint i = 0; i < m_vectSelectDataHan 阅读全文
posted @ 2012-03-15 14:57 byfei 阅读(208) 评论(0) 推荐(0) 编辑
摘要: #include vector m_vectSelectDataHander;typedef map templatemap;templatemap MapPthreadID;void *thread1(void*){ int nPthread = MapPt... 阅读全文
posted @ 2012-03-15 14:57 byfei 阅读(26) 评论(0) 推荐(0) 编辑
摘要: #ifndef CBIGBOSS_H_#define CBIGBOSS_H_#include <time.h>#include <map>using namespace std;class CBigBoss {public:typedef map<int, int> templatemap;templatemap BossSort;bool Insert(int nRoleID,int nHurtBlood);bool Updata(int nRoleID,int nHurtBlood);bool Remove(int nRoleID);}#endifboo 阅读全文
posted @ 2012-03-08 23:11 byfei 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 如果发现伤口发红千万不能用手去扣 去摸 去挤用消毒液洗了 干净的布包扎上伤口小可以用创可贴然后买上消炎内服药甲硝锉片(灭滴灵)头孢泊亏脂片(勄新)本人亲身经历一个小红豆,我去扣然后 发红了然后我就去挤后来发炎了走路都疼过了两天去了医院医生用那个铁钳子掀开口然后用铁钳子 在肉里面夹我的妈啊 那个真疼我的眼睛都看不清了 就像黑白电视没查信号线 那样眼前一片雪花飘汗水都疼出来了 阅读全文
posted @ 2012-02-26 13:34 byfei 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 排序算法的稳定性比较2010-02-13 17:43首先,排序算法的稳定性大家应该都知道,通俗地讲就是能保证排序前2个相等的数其在序列的前后位置顺序和排序后它们两个的前后位置顺序相同。在简单形式化一下,如果Ai = Aj, Ai原来在位置前,排序后Ai还是要在Aj位置前。 其次,说一下稳定性的好处。排序算法如果是稳定的,那么从一个键上排序,然后再从另一个键上排序,第一个键排序的结果可以为第二个键排序所用。基数排序就是这样,先按低位排序,逐次按高位排序,低位相同的元素其顺序再高位也相同时是不会改变的。另外,如果排序算法稳定,对基于比较的排序算法而言,元素交换的次数可能会少一些(个人感觉,没有证实 阅读全文
posted @ 2012-02-13 17:13 byfei 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <time.h>#include <iostream>using namespace std;int main(void){time_t timep;struct tm *p;time(&timep);printf("time() : %d \n",timep);p=localtime(&timep);timep = mktime(p);printf("time()->localtime()->mktime():%d\n",timep); 阅读全文
posted @ 2012-01-04 19:49 byfei 阅读(178) 评论(0) 推荐(0) 编辑
上一页 1 ··· 83 84 85 86 87 88 89 90 91 ··· 95 下一页