![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++深入学习
HWY_猿
刚想挤进大门的小白
展开
-
面试题之内联函数
面试题之内联函数内联函数是什么,有什么用,怎么用内联函数与宏定义的区别内联函数与普通函数的区别原创 2019-10-20 17:22:56 · 422 阅读 · 0 评论 -
C语言中const修饰的变量的值真的不能被修改吗?
test_const.c 1 /* 2 * this program is used to test whether the value of a "const" variable can be 100% unmodified. 3 */ 4 5 #include<stdio.h> 6 int main(void ) 7 { 8 int con...原创 2019-06-07 09:50:50 · 2401 阅读 · 3 评论 -
C语言制作静态、动态链接库简单记录
一、静态链接库编写个xxx.c文件,里面实现函数定义;编写个xxx.h文件,里面写明xxx.c文件中所定义的函数的声明。然后执行下面命令以制作静态链接库。gcc xxx.c -c -o xxx.oar -rc libxxx.a xxx.o编写测试程序xxxxx.c,然后执行下面命令编译生成想要的可执行文件。gcc xxxxx.c -o xxxxx -lxxx -L .二、动态链接库...原创 2019-09-18 21:57:07 · 188 阅读 · 0 评论