C++编写仓库管理系统 //functions.h #include #include #include #include #include #include using namespace std; void denglu(); void choice(); void zhuce(); char first_face(); void in_storage(); void select_time(); void out_storage(); void select_ele(); void select_name(); void select_kind(); void select_all(); void call(); void denglu() { string username1,passport1,name1; string username,passport; ifstream storeFile("userdate.txt"); if(!storeFile) { cout<<"\n\n\t 对不起,用户文件丢失。。。\n\n\t"; system("pause"); return; } cout<<"用户登录:"<>username; cout<<"请输入密码:"; cin>>passport; bool flag=false; while(storeFile>>username1>>passport1>>name1) { if(username1==username&&passport1==passport) { flag=true; system("cls"); cout<<"登录成功!"<