所以我有我的头文件中定义的这个宏和其他一些
#define COL1WIDTH 16
Run Code Online (Sandbox Code Playgroud)
我想用它来打印这样的东西:
word 25 Dir1/FileB 129 Sat Jan 1 00:00:02 2011 12 1(x4), 2(x2), 3(x2), 4(x2), 5(x2)
Run Code Online (Sandbox Code Playgroud)
获取宏的语法如何工作?尝试了一堆,它一直搞砸了.
试过这个
printf("%COL1WIDTHs\t",index->terms[0].term);
Run Code Online (Sandbox Code Playgroud)