gets()在我的代码中使用时,编译器大喊
warning: the 'gets' function is dangerous and should not be used.`
Run Code Online (Sandbox Code Playgroud)
和
warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638)
[-Wdeprecated-declarations]
Run Code Online (Sandbox Code Playgroud)
有什么具体原因吗?