#include <iostream>
#include <string>
#include <conio.h> // 注意:这仅在Windows中有效
#include <windows.h>
#include <cstdlib>
#include <ctime>
#include <iomanip> // 用于格式化时间输出
using namespace std;
int main() {
// ...(之前的代码保持不变)
int i;
int number=00000000000;
string name,placn;
cout<<"正在加载资源——————"<<endl;
for(i=0;i<10;i++){
Sleep(3000);
cout<<"█";
}
Sleep(2000);
system("cls");
cout<<"成功"<<endl;
Sleep(1000);
system("cls");//*/
cout<<"\n\n\n\n\n\n\n\n HUAWEI"<<endl;
Sleep(3000);
system("cls");
while (true) {
cout << "1:资料" << endl;
cout << "2:昵称" << endl;
cout << "3:地址" << endl;
cout << "4:电话号码" << endl;
cout<<"5:C"<<endl;
cout << "q.退出" << endl;
while (!_kbhit()) {
}
char input = _getch();
switch (input) {
case '1':
system("cls");
cout <<"资料"<<endl;
cout<<"用户名:"<<name<<endl;
cout <<"号码:"<<number<<endl;
cout<<"地址:"<<placn<<endl;
cout<<"按Z退出"<<endl;
while (!_kbhit()) {
}
switch(input){
case 'z':cout<<"";
}
break;
case 'q':
cout <<"退出程序..." << endl;
return 0;
case '2':
system("cls");
cout<<"输入新名称"<<endl;
getline(cin, name);
cout<<"修改成功"<<endl;
Sleep(1000);
break;
case '3':
system("cls");
cout<<"地址输入"<<endl;
getline(cin,placn);
cout<<"完成"<<endl;
Sleep(1000);
break;
case '4':
system("cls");
cout<<"填入号码"<<endl;
cin>>number;
break;
//}
}
system("cls");
}
return 0;
}
HUAWEI(Dev-C++手机1.0)
于 2024-09-13 21:34:05 首次发布