摘要: 编写程序,输出“我爱学习c语言!”。 #include<stdio.h> main() { printf("我爱学习c语言!"); } 分行输出自己的专业和姓名 复制代码 #include<stdio.h> main() { printf("***************************** 阅读全文
posted @ 2021-11-24 13:27 徐赫彤 阅读(16) 评论(0) 推荐(0)
摘要: 1.用循环结构求字符串的长度。 #include<stdio.h> main() { char str[80]; int i=0; int length=0; gets(str); puts(str); while(str[i++]!='\0') length++; printf("字符串的长度为: 阅读全文
posted @ 2021-11-24 13:22 徐赫彤 阅读(31) 评论(0) 推荐(0)