相关疑难解决方法(0)

__FILE__宏显示完整路径

C中可用的标准预定义MACRO __FILE__显示文件的完整路径.有没有办法缩短路径?我的意思是代替

/full/path/to/file.c
Run Code Online (Sandbox Code Playgroud)

我知道了

to/file.c
Run Code Online (Sandbox Code Playgroud)

要么

file.c
Run Code Online (Sandbox Code Playgroud)

c macros file path

152
推荐指数
14
解决办法
12万
查看次数

标签 统计

c ×1

file ×1

macros ×1

path ×1