- 博客(4)
- 资源 (2)
- 收藏
- 关注
转载 C/C++结构体字节对齐详解
转载自:http://blog.youkuaiyun.com/hyljqr/article/details/500899 结构体的sizeof 先看一个结构体: struct S1 { char c; int i; }; sizeof(s1)在VC6中按默认设置得到的结果为8。 我们先看看sizeof的定义——sizeof的结果等于对象或者类型所占的内存字节数,
2016-11-01 16:19:34
231
原创 二叉树按层遍历打印的算法(c/c++)
void LevelOrder(BTree T, int cnt) { BTree level = malloc(sizeof(struct BTNode)*cnt); if(level==NULL) return; int i=0,rear=0; if(cnt==0) return; for(i=0; i<cnt; i++){ printf
2016-10-30 16:15:43
1332
原创 afx是什么?
AFX成长介绍 当小组成员以此产品开发应用程序,他们发现实在是太复杂,又悖离公司的主流系统--Windows --太遥远。于是他们修改宪章变成"deliver the power of object-oriented solutions to programmers to enable them to build world-class Windows based applications in
2016-10-30 15:59:56
2214
转载 CreateThread,_beginthread与AfxbeginThread 的区别 (转载自jogholy的博客)
在Windows的多线程编程中,创建线程的函数主要有CreateThread,_beginthead(_beginthreadex)和AfxBeginThread,那么它们之间有什么联系与区别呢?当我需要创建一个线程时该用哪个函数呢? 下面先介绍各个函数的用法: CreateThread: 函数原型: HANDLE WINAPI CreateThread( _in L
2016-10-30 15:32:18
283
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人