- 博客(1)
- 收藏
- 关注
原创 C语言对于输入数据截断类型的非法输入问题的解决办法
文章目录前言一、函数实现二、函数分析1.整体分析2.具体分析`char* destination``memset(destination, 0, sizeof(destination));``rewind(stdin)``fgets(destination, limit_characters_number + 1, stdin)``if ('\n' == destination[strlen(destination) - 1]) destination[strlen(destination) - 1] =
2021-04-09 18:26:56
1892
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人