the `gets' function is dangerous and should not be used.

来源:互联网 发布:智慧工地软件加盟 编辑:程序博客网 时间:2024/06/04 19:17

在ubuntu下同gets直接warning,无法编译运行。

gets函数在输入时是以\0结束的,只能换用fgets。

0 0