
c
chenhongming888
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
VS2015 scanf 函数报错 error C4996: 'scanf'
错误显示 严重性 代码 说明 项目 文件 行 禁止显示状态 警告 C4996 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for detai原创 2017-04-23 16:45:11 · 6163 阅读 · 0 评论 -
C 语言中操作字符串的函数
在 C 语言中,字符串实际上是使用 null 字符 '\0' 终止的一维字符数组。因此,一个以 null 结尾的字符串,包含了组成字符串的字符。 strcpy(s1, s2); 复制字符串 s2 到字符串 s1。 strcat(s1, s2); 连接字符串 s2 到字符串 s1 的末尾。 strlen(s1); 返回字符串 s1 的长度。 strcmp(s1, s2);原创 2017-04-23 16:55:01 · 371 阅读 · 0 评论 -
warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s inste
警告 1 warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. #include "s转载 2017-04-23 17:12:14 · 506 阅读 · 0 评论