上一页 1 2 3 4 5 6 7 8 ··· 25 下一页
摘要: 创建 CreateEvent销毁 CloseHandle事件变为有信号(可以使用信号) SetEvent事件变为无信号(不可以使用信号) ResetEvent事件的创建HANDLECreateEvent( LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL ... 阅读全文
posted @ 2014-09-19 10:46 calmound 阅读(2024) 评论(0) 推荐(0) 编辑
摘要: HANDLE WINAPI CreateThread( LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpPa... 阅读全文
posted @ 2014-09-17 17:43 calmound 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 看一个程序#include using namespace std;class A{public: virtual void Fun(int number = 10) { std::cout B,非A,缺省实参是编译时候确定的=>10,非20 输出:B::Fun with number 10条款... 阅读全文
posted @ 2014-08-31 17:34 calmound 阅读(562) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;struct ListNode{ int data; ListNode *lchild,*rchild;};ListNode* Createbst(){ int data; scanf("... 阅读全文
posted @ 2014-08-30 22:00 calmound 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 例如“abc”输出a,b,c,ab,ac,bc,abc#includevoid DFS(char str[],char ss[],int pos,int cnt,int n){ if(n==pos) { ss[cnt]='\0'; if(cnt!=0) pri... 阅读全文
posted @ 2014-08-30 18:23 calmound 阅读(1531) 评论(0) 推荐(0) 编辑
摘要: #includevoid ShellSort(int array[],int length){ int i,j,h,temp; for(h=length/2;h>0;h=h/2) { for(i=h;i=0;j-=h) { ... 阅读全文
posted @ 2014-08-30 17:41 calmound 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #includevoid AdjustMinHeap(int *a,int pos,int len){ int temp,child; for(temp=a[pos];pos*2+1=0;i--) AdjustMinHeap(array,i,len-1); for(i=le... 阅读全文
posted @ 2014-08-30 16:55 calmound 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 当接触一新CPU时商家会首先描述它是RISC指令集,这意味着什么,从这个描述你能了解多少CPU特性信息?复杂指令集计算机(CISC) 长期来,计算机性能的提高往往是通过增加硬件的复杂性来获得.随着集成电路技术.特别是VLSI(超大规模集成电路)技术的迅速发展,为了软件编程方便和提高程序的运行速度,... 阅读全文
posted @ 2014-08-29 09:36 calmound 阅读(2564) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;//日期函数int days[12]={31,28,31,30,31,30,31,31,30,31,30,31};struct date{ int year,month,day;};//判闰年inline int leap(in... 阅读全文
posted @ 2014-08-28 12:16 calmound 阅读(423) 评论(0) 推荐(0) 编辑
摘要: struct ListNode{ int data; ListNode *lchild,*rchild;};void CreateBSTree(ListNode *B2_root,ListNode *BSTree_root){ if(BSTree_root==NULL) ... 阅读全文
posted @ 2014-08-27 21:44 calmound 阅读(1707) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页