摘要: 链接:https://www.runoob.com/cprogramming/c-function-sprintf.html 接: 阅读全文
posted @ 2021-04-11 22:56 笙箫涩 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1、C语言中strlen函数用来求字符串的长度 头文件:string.h 函数原型:size_t strlen(const char *str); 参数str表示要求长度的字符串; 功能:strlen()函数从字符串的开头位置依次向后计数,直到遇到‘\0’为止,停止计数。返回的值中不包括‘\0’ 2 阅读全文
posted @ 2021-04-11 22:38 笙箫涩 阅读(60) 评论(0) 推荐(0) 编辑