📄 main.cpp
字号:
#include <iostream>
#include <conio.h> //putch()和getch()
#include <string>
#include "Funtion.h"
#include "Peo.h"
using namespace std;
//程序入口函数
int main()
{
//设置标题
system("title 2008届海南大学应用技术学院计算机科学与技术通讯录");
//设置控制台的颜色,参数用两位的16进制数,第一个设置背景,第二个则为前景
system("color 0A");
Nothing_Cout();
//获取管理员帐户和密码
string name;
string password;
cout <<endl<< " 帐号: ";
cin >> name;
cout <<endl<< " 密码: ";
cin >> password;
if ((password=="123") && (name=="admin"))
{ Form1_Show(); }
else
{
cout <<endl<< " 你输入的 密码 不正确 ";
//暂停
system("pause");
system("cls");main();
}
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -