|
源程序:
- #include<stdio.h>
- #define MAX 81
- int main(void)
- {
- char name[MAX];
- printf("Hi,What's your name?\n");
- gets(name);
- printf("Nice name,%s.\n",name);
- return 0;
- }
复制代码
每次都出现下面的提示,但可以正确运行程序,高手帮看一下是怎么回事。
[root@localhost cai]# gcc y1.c
/tmp/ccYFUbd1.o(.text+0x28): In function `main':
: the `gets' function is dangerous and should not be used. |
|