#include<iostream> #include<vector> using namespace std; struct student{ int id;//学号 string name;//名字 int age;//年龄 int grade;//班级 }s; void xitong(){ cout<<"欢迎来到学生管理系统"<<endl; cout<<"请做出以下选择"<<endl; cout<<"1.新建学生信息"<<endl; cout<<"2.查找学生信息"<<endl; cout<<"3.修改学生信息"<<endl; cout<<"4.删除学生信息"<<endl; cout<<"5.退出系统"<<endl; } vector<student> insert(vector<student> a){ cin>>s.name; cin>>s.age; cin>>s.grade; } int main(){ vector<student> a; xitong(); int n; cin>>n; switch(n){ case 1: break; case 2: break; case 3: break; case 4: break; case 5: return 0; break; } return 0; }
标签:case,xitong,int,系统,cin,学生,break,grade From: https://www.cnblogs.com/guoliheng/p/17904533.html