使用GCC编译我的程序与功能得到 [英] Using gcc to compile my program with gets function

查看:206
本文介绍了使用GCC编译我的程序与功能得到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试这样做,我得到这样的:

Whenever I try to do that, I get this :

报警:`获取功能是危险的,不宜使用

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

现在,我知道为什么这个功能是可怕的。但是,对于我的编制已经编写的程序的缘故,我必须使用此功能。我应该这样做此警告将不会出现呢? [或具有完全相同的特性的功能。与fgets略有不同,所以我的code将无法正常工作]

now , I know why this function is awful. But for the sake of compiling my already-written program, I must use this function. What should I do so this warning won't appear? [or a function with the EXACT same properties. fgets is slightly different so my code won't work]

推荐答案

感动答案

<一个href=\"http://stackoverflow.com/a/27431134/2410359\">http://stackoverflow.com/a/27431134/2410359

位后,将删除此。

这篇关于使用GCC编译我的程序与功能得到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆