debug.c
来自「c pre preocessor directive for debug mes」· C语言 代码 · 共 24 行
C
24 行
//#ifndef DEBUG//#define DEBUG 0//#endif#include <stdio.h>int main(){int i,k;#ifdef DEBUGprintf("Compiled: " __DATE__ " at" __TIME__"\n");printf("This is line %d of file %s\n", __LINE__, __FILE__);#endiffor(i=0;i<20;i++){k=i+13;printf("hello world\n");}exit(0);}//gcc -o debug -DDEBBUG debug.c
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?