- 博客(6)
- 收藏
- 关注
转载 内存泄露经典题
#include <stdio.h>#include <malloc.h> int main(void){int * msg = NULL;int * msg2 = NULL;int a = 2;msg = (int *)malloc(10);if(NULL == msg) {printf("msg malloc error!\n");...
2013-04-25 20:13:00 103
转载 变量在内存中所占空间大小
测试程序: 1 #include <stdio.h> 2 3 #define RANGE(type) \ 4 if ( (type)((type)0 - 1) > 0 ) \ 5 { \ 6 type m = 0; \ 7 m = m - 1; \ 8 p...
2013-04-15 19:06:00 670
转载 变量类型强转问题
如下代码,在进行强制类型转换时,会导致打印出来的数据不是想要的: 1 #include <stdio.h> 2 3 void AddFunc (unsigned int a, unsigned int b, unsigned int * c) 4 { 5 *c = a + b; 6 } 7 8 int main(void)...
2013-04-15 18:59:00 136
转载 使用csc命令,将.cs文件编译成.dll文件
一、简介DLL: dynamic link library 动态链接库,它是作为共享函数库的可执行文件,使用它可达到很高的代码重用效果。打开VS2010 -> Visual Stdio Tools -> VS命令提示,使用命令 csc /? 查看是否有csc命令。csc命令格式: csc 选项 *.cs选项介绍: /out:输出文件名 ...
2012-08-25 16:07:00 142
转载 c# 队列
队列:先入先出 (只允许在队头删除,队尾插入元素)View Code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace test_queue 7 { 8 class Pr...
2012-07-24 20:25:00 84
转载 查看windows xp系统是32位还是64位
1、cmd命令行下,输入命令“systeminfo”,如果是64位,会在“OS名称”一行标注“x64 Edition”,否则是32位系统。2、开始->运行,输入命令“winver”,如果系统是64位的,会标注“x64 Edition”。3、右击“我的电脑”,选择属性,若是64位的,会标注。转载于:https://www.cnblogs.com/n-a-n-c/archi...
2012-07-24 14:27:00 194
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人