halozhe
halozhe
全部文章
未归档
Algorithm(1)
Data structure(1)
Machine Learning(7)
MFC OpenGL(5)
Python of Mooc(6)
ROS(1)
归档
标签
去牛客网
登录
/
注册
halozhe的博客
Talk is cheap,show me your code.
全部文章
/ 未归档
(共18篇)
const & volatile
一、const (1)const修饰变量 1)在C语言中const修饰的变量是只读的,其本质还是变量; 2)const修饰的变量会在内存占用空间; 3)本质上const只对编译器有用,在运行时无用(const不是真的常量)。 const int c = 1;//只读的变量c ...
2020-12-02
0
439
struct和union分析
一、struct 空结构体占多大内存???下面例子: #include <stdio.h> struct str { }; int main() { struct str obj1; struct str obj2; printf(&quo...
2020-12-02
0
517
柔性数组 斐波拉契序列
#include #include typedef struct SoftArray { int length; int array[]; }SoftArray; SoftArray* CreatSoftArray(int size) ...
2020-12-02
0
447
error LNK1207:---------------.pdb”中的 PDB 格式不兼容;请删除并重新生成
两种解决办法: (1)菜单栏->生成>清除解决方案,然后再重新生成解决方案;或 (2)在项目文件夹下面的debug和release目录删除。
2020-12-02
0
714
error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead.
编译出错信息:错误 1 error C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECU...
2020-12-02
0
496
C++基础--随堂代码总结--引用的本质
(1) 引用作为其他变量的别名而存在,在一些场合可以代替指针; (2)单独定义普通引用时 必须初始化,很像一个常量; int &b = a;//b是一个引用 b是a的别名 (3)引用也占内存空间,和指针一样; //... struct typeA { ...
2020-12-02
0
451
C++基础--随堂代码总结--引用作为函数的返回值
1)不能返回局部变量的引用; 2)不能返回函数内部new分配的内存的引用; 3)可以返回类成员的引用,最好是const;
2020-12-02
0
363
二维数组作为函数参数传递
二维数组作为函数参数调用过程中: void Fun(**a, m, n) { //.... } //.... Fun(a,m,n); 调用函数过程中,会发现VS报错: //IntelliSense: "int (*)[3]" 类型的实参与 "int **&qu...
2020-12-02
0
522
首页
上一页
1
2
下一页
末页