摘要:
使用的是 Fedora 10 gcc编译下面程序 显示warning: the `gets' function is dangerous and should not be used.问题出在程序中使用了 gets Linux 下gcc编译器不支持这个函数,解决办法是使用 fgetsfgets()函数的基本用法为:fgets(char * s,int size,FILE * stream);/* 代码实现 */#include <stdio.h>int main ( ) { char name[20]; printf("\n 输入任意字符 : "); f 阅读全文
posted @ 2011-04-10 13:26
清清飞扬
阅读(3097)
评论(1)
推荐(0)
浙公网安备 33010602011771号