摘要: strlen() 获取字符串长度 #include <stdio.h> #include <string.h> char a[] = "abcde"; printf("%d \n", strlen(a)); //结果5 scanf() //可以自己输入一段XXX到程序变量,如果输入中包含空格,则变量 阅读全文
posted @ 2018-01-28 16:30 咻_python 阅读(164) 评论(0) 推荐(0) 编辑