上一页 1 ··· 5 6 7 8 9
摘要: https://www.cnblogs.com/lixianfu5005/p/9967147.html 阅读全文
posted @ 2020-07-21 14:16 CGoodHabits 阅读(134) 评论(0) 推荐(0)
摘要: http://www.yishimei.cn/network/319.html 阅读全文
posted @ 2020-07-21 10:06 CGoodHabits 阅读(1318) 评论(0) 推荐(0)
摘要: C函数atoi() int atoi(const char *str) 把参数 str 所指向的字符串转换为一个整数(类型为 int 型)。 atoi() 函数的声明 int atoi(const char *str) 阅读全文
posted @ 2020-07-17 14:11 CGoodHabits 阅读(150) 评论(0) 推荐(0)
摘要: puts() 输出更简洁、更方便。而且使用 puts() 函数连换行符 '\n' 都省了,使用 puts() 显示字符串时,系统会自动在其后添加一个换行符,也就是说 printf("%s\n", name);和:puts(name)是等价的 阅读全文
posted @ 2020-07-13 09:49 CGoodHabits 阅读(353) 评论(0) 推荐(0)
摘要: C语言中字符串常量的本质表示其实是一个地址,C语言中编译器会给字符串常量分配地址,字符串常量的本质表现是代表它的第一个字符的地址 给字符串分配地址 char *s; s= "hello"; s就是当前字符串的首地址 阅读全文
posted @ 2020-07-09 16:04 CGoodHabits 阅读(592) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9