高铁试验检测计划书(高铁检测是什么工作)
13032024-08-02
#includeint main
() { int a, b, sum; printf
("请输入两个整数:\n"); scanf
("%d %d", &a, &b); sum = a + b; printf
("两个整数的和为:%d\n", sum); return 0; }
#include#include #include void printMenu
(); int main
() { int choice; char option; while
(1) { printMenu
(); scanf
(" %c", &option); switch
(option) { case 'A': printf
("【A】添加用户\n"); break; case 'B': printf
("【B】删除用户\n"); break; case 'C': printf
("【C】修改用户信息\n"); break; case 'D': printf
("【D】显示所有用户\n"); break; case 'E': printf
("【E】退出系统\n"); break; default: printf
("无效选项,请重新输入!\n"); break; } } return 0; } void printMenu
() { int i; printf
("\n【系统菜单】\n"); printf
("
1.添加用户\n"); printf
("
2. 删除用户\n"); printf
("
3. 修改用户信息\n"); printf
("
4. 显示所有用户\n"); printf
("
5. 退出系统\n"); printf
("请选择:"); for
(i = 1; i <= 5; i++) { printf
("%d. %s\n", i, menu[i]); } }