warning: the gets function is dangerous and should not be used.
来源:互联网 发布:腾讯软件管理下载 编辑:程序博客网 时间:2024/06/05 10:20
按照书上的视频教程写下来,运行时出现错误 warning: the gets function is dangerous and 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
看完前三个评论就能明白了
0 0
- 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.
- “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.的解决办法
- 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.
- warning: the ‘gets' function is dangerous and should not be used
- warning: the gets function is dangerous and should not be used.
- the update-modules command is deprecated and should not be used
- Why the "volatile" type class should not be used
- The function default must be used with a prefix when a default namespace is not specified
- The function getXX 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
- oj125. Valid Palindrome
- java发送http请求模板示例
- html状态码
- qrc:/main.qml:18 SButton is not a type
- Mac 与 virtualbox windows7 共享文件
- warning: the gets function is dangerous and should not be used.
- Linux——Vi/Vim如何消除搜索后的关键字高亮
- 类 静态方法,属性,类方法
- vs编译时出现大量ws2def.h的错误的解决方法
- error C1189: #error : Please use the /MD switch for _AFXDLL builds---解决方案
- SQl行列互转
- 简单实现支持用户名和邮箱登录
- 编程之美_通讯录时长统计
- Shell——echo命令