Loading

摘要: 内联函数 关键字inline,inline是空间换时间,提高了程序效率但花费了更多空间。举个例子,下面是一段C语言代码: void fun(int i) { return i*2; } int main() { int a = 4; int b = fun(a); } 假定以上C文件被编译器编译成的 阅读全文
posted @ 2024-04-26 11:38 记录学习的Lyx 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 定义和声明 在学习C\C++的过程中有两组概念需要注意:声明(declarartion)和定义(definition)。引用Declare vs Define in C and C++上的一段话: A declaration provides basic attributes of a symbol 阅读全文
posted @ 2024-04-26 11:04 记录学习的Lyx 阅读(5) 评论(0) 推荐(0) 编辑