摘要: 1.实现一个菜单 可以切换 ,可以返回主菜单 主菜单 1.登录 2.注册 3.输出水仙花数 4.退出程序 请选择: 选择后实现对应的功能 #include<stdio.h> void mainMenu(); void two(); main() { mainMenu(); } void mainMe 阅读全文
posted @ 2021-12-09 04:12 所燃己 阅读(37) 评论(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("字符串的长度为:%d\n",l 阅读全文
posted @ 2021-12-09 04:11 所燃己 阅读(34) 评论(0) 推荐(0)