warning: the gets function is dangerous and should not be used.
2017-04-21 10:21
246 查看
按照书上的视频教程写下来,运行时出现错误 warning: the gets function is dangerous and should not be used.
原因暂时还不知道。解决方法就是将gets改成fgets
具体的解释可以参考http://stackoverflow.com/questions/1694036/why-is-the-gets-function-so-dangerous-that-it-should-not-be-used
看完前三个评论就能明白了
原因暂时还不知道。解决方法就是将gets改成fgets
char* fgets(char *string, int length, FILE * stream);
具体的解释可以参考http://stackoverflow.com/questions/1694036/why-is-the-gets-function-so-dangerous-that-it-should-not-be-used
看完前三个评论就能明白了
相关文章推荐
- warning: the 'gets' function is dangerous and should not be used.的解决办法
- warning: the ‘gets' function is dangerous and should not be used
- warning: the 'gets' function is dangerous and should not be used.的解决办法
- Linux下开发warning:"the `gets' function is dangerous and should not be used"
- warning: the 'gets' function is dangerous and should not be used.的解决办法
- the `gets' function is dangerous and should not be used.
- warning: the 'gets' function is dangerous and should not be used.的解决办法
- UserWarning: The installed version of numexpr 2.4 is not supported in pandas and will be not be used
- The function size must be used with a prefix when a default namespace is not specified
- The function must be used with a prefix when a default namespace is not specified
- The function equals must be used with a prefix when a default namespace is not specified
- The function getUserId must be used with a prefix when a default namespace is not specified 解决办法
- 关于The function equals must be used with a prefix when a default namespace is not specified解决
- The function getUserId must be used with a prefix when a default namespace is not specified 解决办法
- The function size must be used with a prefix when a default namespace is not specified
- 关于The function get must be used with a prefix when a default namespace is not specified的错误
- android studio: the prefix com.example is meant as a placeholder and should not be uesd解决方法
- The function getXX must be used with a prefix when a default namespace is not specified
- The function equals must be used with a prefix when a default namespace is not specified解决
- This event supports the .NET Framework infrastructure and is not intended to be used directly from your code?继承自VScrollbar的自定义winform控件,某些事件不触发的问题(Winform控件开发学习)