上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: Implement a circular buffer of size N. Allow the caller to append, remove and list the contents of the buffer. Implement the buffer to achieve maximum performance for each of the operations.The new items are appended to the end and the order is retained i.e elements are placed in increasing order of 阅读全文
posted @ 2012-09-14 16:30 可乐爱上了雪碧 阅读(173) 评论(0) 推荐(0) 编辑
摘要: ansi to unicode 函数调用要注意。static TCHAR regPath[] = _T("Software\\snda\\IGW");static TCHAR regItem[] = _T("SNDALOGINASSISTANT");static TCHAR regValue[MAX_PATH] = {0};GetRegValue(regValue, regPath, regItem);static BOOL GetRegValue(TCHAR * regValue, const TCHAR * regPath, const TCHAR 阅读全文
posted @ 2012-09-14 16:15 可乐爱上了雪碧 阅读(332) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;//num is the number of the array,index from 0 to num-1//the index relationship : child index is k then parent index is (k-2)/2void shiftDown(int * an, int i, int num){ if(NULL == an || i < 0 || num < 0) return; int temp = an[i]; while(2*i+1 < num 阅读全文
posted @ 2012-09-14 09:31 可乐爱上了雪碧 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 1 、如何让协议许可页面默认选中我同意按钮[code]procedure InitializeWizard();beginWizardForm.LICENSEACCEPTEDRADIO.Checked := true;end;2、自定义安装程序右上角图片大小[code]procedure InitializeWizard();beginWizardForm.WizardSmallBitmapImage.width:=150; //设置页眉图片的大小WizardForm.WizardSmallBitmapImage.left:=WizardForm.width-150; //设置左边页眉留出的空 阅读全文
posted @ 2012-09-12 10:02 可乐爱上了雪碧 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 中继器是连接网络线路的一种装置,常用于两个网络节点之间物理信号的双向转发工作。中继器是最简单的网络互联设备,属于物理层的设备。网桥是一个二层(数据链路层)设备,用于隔绝冲突,但是不能隔绝广播。常常是基于软件的,现在使用得很少。交换机是一个多端口的二层(数据链路层)设备,又叫做多口桥,功能除了网桥所具有的功能之外,还有其特定的高级功能,如路由。路由器是一个三层(网络层)设备,用于路径选择,并且可以隔绝广播。网关是连接两个协议差别很大的计算机网络时使用的设备。它可以将具有不同体系结构的计算机网络连接在一起。在OSI/RM中,网关属于最高层(应用层)的设备。IP1.每个ip地址由一个网络号和主机号组 阅读全文
posted @ 2012-09-11 15:58 可乐爱上了雪碧 阅读(2678) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页