![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c知识点
努力学习的花椰菜
这个作者很懒,什么都没留下…
展开
-
C语言,##与#在宏定义中的用法
##与#在宏定义中的用法 最近在项目中,看到了##,与#在宏定义中的用法,现在对这个知识点进行总结。 一般用法: 使用#把宏参数变成字符串 使用##把两个宏参数贴在一起 实例程序: #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <stdio.h> #include <string.h> #define STRCPY(a,b) strcpy(a##_d,#b) int main(void)原创 2020-05-24 11:22:35 · 246 阅读 · 0 评论 -
c语言知识点————函数指针
最近对C语言的指针进行复习,对函数指针进行总结。 函数指针(指向函数的指针) 定义函数指针变量的方式有三种: 第一种: 先定义函数类型,根据类型定义指针变量。 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> int fun(int a) { printf("a ========== %d\n", a); return 0; } i原创 2020-07-08 17:37:54 · 272 阅读 · 0 评论