12 2021 档案

摘要:1.实现一个菜单 可以切换 ,可以返回主菜单 主菜单 1.登录 2.注册 3.输出水仙花数 4.退出程序 请选择: 选择后实现对应的功能 #include <stdio.h> void mainMenu(); void login(); void returnToMain(); void regis 阅读全文
posted @ 2021-12-07 22:51 小楠参 阅读(72) 评论(0) 推荐(0)
摘要:1.用循环求字符串长度 #include<stdio.h> #include<string.h> main(){ int i=0; char str[50]="wo ai c yuyan"; while(str[i]!='\0'){ i++; } printf("%d\n",i); } 2.编写程序 阅读全文
posted @ 2021-12-07 22:51 小楠参 阅读(119) 评论(0) 推荐(0)