
C
DiffenYu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
深入理解const char*p,char const*p,char *const p,const char **p,char const**p,char *const*p,char**const p
http://www.cnblogs.com/rushuizhijing/archive/2011/08/26/2154737.html 一、可能的组合: (1)const char*p (2)char const*p (3)char *const p (4)const char **p (5)char const**p (6)char *cons转载 2012-12-07 18:21:46 · 634 阅读 · 0 评论 -
cdecl、stdcall、fastcall函数调用约定区别
论函数调用约定 在C语言中,假设我们有这样的一个函数: int function(int a,int b) 调用时只要用result = function(1,2)这样的方式就可以使用这个函数。但是,当高级语言被编译成计算机可以识别的机器码时,有一个问题就凸现出来:在CPU中,计算机没有办法知道一个函数调用需要多少个、什么样的参数,也没有硬件可以保转载 2012-12-09 21:45:43 · 555 阅读 · 0 评论 -
预编译头文件(precompiled header)
预编译头文件(precompiled header) http://www.haogongju.net/art/891941 预编译头文件 今天在改一个很大的程序,慢慢看,慢慢改。突然发现一个.c文件,里面什么也没有, 就几个头文件,我一看,我靠,这不是把简单的问题搞复杂了吗,随手删掉那个c文件。 结果不能编译了,我靠: fatal error转载 2012-12-09 21:39:15 · 817 阅读 · 0 评论 -
int x264_nal_encode( void *p_data, int *pi_data, int b_annexeb, x264_nal_t *nal )
/**************************************************************************** * x264_nal_encode: * x264_nal_encode( mux_buffer, &i_size, 1, &nal[i] ); **********************************************原创 2012-12-13 20:47:04 · 1985 阅读 · 0 评论 -
利用yasm在vs2008中进行X86汇编与C/C++相互调用
1.工具的下载以及环境的搭建 yasm的下载 在http://yasm.tortall.net/Download.html选择win32.exe,将其改名为yasm.exe,并将其添加至D:\Program Files\Microsoft Visual Studio 9.0\VC\bin下(安装目录不同的对应更改) yasm.rules文件下载 在https原创 2012-12-19 19:05:21 · 4953 阅读 · 1 评论 -
C语言中的随机函数rand()
#if 1 #include #include #include #include #include using namespace std; int main() { int nRandNumber[10]; for (int idx = 0; idx < 10; ++idx) { nRandNumber[idx] = rand();//取随机数范围为integer 0 ~原创 2013-01-24 19:36:15 · 2088 阅读 · 0 评论 -
头文件string,string.h,cstring的器区别和联系
/************************************************************************/ /*一般的C++的.h头文件在新标准库中都有一个不带'.h'的扩展名相对应,后者对前者有了改进,并送至了std命名空间 /*string并不是string.h的改进扩展,在C中已经有了一个string.h的头文件,有着诸如strcmp,strcat等原创 2012-12-14 11:09:49 · 790 阅读 · 1 评论