main.cpp

来自「用C++编写的课程设计」· C++ 代码 · 共 42 行

CPP
42
字号
#include "shengming.h"
void main()
{
	system("color 1f");
	char ch[30];
	show_mainM();
	cin>>ch;
	while(strcmp(ch,"4")!=0)
	{	
		system("cls");//清屏
		if(strcmp(ch,"1")==0)
		{
			cout<<"进入前台销售模块"<<endl;
			enter_paid();
			system("cls");
			show_mainM();
		}
		else if(strcmp(ch,"2")==0)
		{	
			cout<<"进入书库管理模块"<<endl;
			enter_con();
			system("cls");
			show_mainM();
		}
		else if(strcmp(ch,"3")==0)
		{
			cout<<"进入报表模块"<<endl;
			enter_baobiao();
			system("cls");
			show_mainM();
		}
		else 
		{
			show_mainM();
			cout<<"输入不正确,请重新输入:";
		}
		cin>>ch;
	}
	cout<<"谢谢光临,再见!"<<endl;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?