12 2011 档案
摘要:一维数组一维数组以线性方式存储固定数目的项,只需一个索引值即可标识任意一个项。在 C# 中,数组声明中的方括号必须跟在数据类型后面,且不能放在变量名称之后,而这在 Java 中是允许的。因此,类型为 integers 的数组应使用以下语法声明:int[] arr1;下面的声明在 C# 中无效://int arr2[]; //compile error声明数组后,可以使用 new 关键字设置其大小,这一点与 Java 相同。下面的代码声明数组引用:int[] arr;arr = new int[5]; // create a 5 element integer array然后,可以使用与 Jav
阅读全文
摘要:step1: http://download.csdn.net/download/xqq524148626/1937262从此处下载随书源码包。解压安装根目录下的setup,按默认会在c:\安装Masm615.C:\Masm615\Examples即为书上源码。step2: 修改 C:\Masm615\INCLUDE\irvine32.inc在INCLUDE SmallWin.inc 此行后加上includelib kernel32.libincludelib user32.libincludelib Irvine32.lib三行。修改后部分内容如下:INCLUDE SmallWin.inc
阅读全文
摘要:http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html
阅读全文
摘要:AppendersThe ability to selectively enable or disable logging requests based on their logger is only part of the picture. Log4net allows logging requests to print to multiple destinations. In log4net speak, an output destination is called an appender. Appenders must implement the log4net.Appenders.I
阅读全文
摘要:masm32 下载地址:http://www.masm32.com/masmdl.htmHLA主页:http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/index.htmlDownload HLA:http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/HighLevelAsm/index.htmlWin Editionhttp://homepage.mac.com/randyhyde/webster.cs.ucr.edu/HighLevelAsm/WinDownload.html安装mas
阅读全文
摘要:#include <stdio.h>#include <stdlib.h>#define NUM_LEN 100int add_str(char * pch1,char * pch2 , char * chResult){ chResult[NUM_LEN-1]='\0'; int idx=NUM_LEN-2; char *pEnd1=pch1,*pEnd2=pch2; for(;*pEnd1!='\0';pEnd1++); for(;*pEnd2!='\0';pEnd2++); pEnd1--; pEnd2--; sho
阅读全文
摘要:#pragma pack(push)#pragma pack(4)typedef struct { double d1; int member; char ch; int member2;}s_member;#pragma pack(pop) sizeof(s_member): 20VC,GCC都支持
阅读全文
摘要:from:http://zh.wikipedia.org/zh-hk/C和C%2B%2B運算子以下是C++程式語言中的所有運算子的優先級和結合性列表。優先級運算子敘述示例重載性結合性1::作用域解析(C++專有)Class::age = 2;否由左至右2++後綴遞增i++--後綴遞減i--{}組合{i++;a*=i;}()函數調用或變量初始化c_tor(int x, int y): _x(x), _y(y * 10) {}[]數組訪問array[4] = 2;.以對象方式訪問成員obj.age = 34;否->以指針方式訪問成員ptr->age = 34;dynamic_cast運
阅读全文