- 博客(1)
- 收藏
- 关注
原创 PAT:fgets()代替gets()函数
PAT:fgets代替gets函数gets函数的不安全性说明fgets函数fgets函数替代gets函数 gets函数的不安全性说明 gets函数声明如下: # include <stdio.h> char *gets(char *str); 该函数的参数是一个指向字符数组的指针,使用方法如下: # include <stdio.h> char str[100]; gets(str); get函数使用时,不同于scanf函数,就算输入的字符串中有空格也可以直接输入。此外,系统
2021-04-29 20:55:28
858
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人