c99中的gets函数是否可以替代?

问题描述

Why is implicit declaration of gets() not allowed in C99? 我已经提到了这个问题,这就是我如何知道它已经过时了。

解决方法

是的,您应该改用fgets()