---警告如下:a2.c:6:5: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] gets(a); ^ /tmp/cceyMQ7u.o: In function `main': a2.c:(.text+0x41): warning: the `gets' function is dangerous and should not be used. ---原因:问题出在程序中使用了 gets...
比如 隐式声明函数‘time’ [-Wimplicit-function-declaration] Linux命令行man 2 time,找到time函数用到的头文件加上就ok了 代码语言:javascript 代码运行次数:0 运行 AI代码解释 #include 本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。 原始发表:2024-10-12,如有侵权请联系 cloudcommunity@tencent...