#include<iostream.h>
#include<Windows.h>
#include<stdlib.h>
#include<conio.h>
#include<time.h>
#include<iomanip.h>
void _0621s1(); //主界面的函数
void _0621s2(); //声明加、减、乘、除运算的单项练习(100以内)的函数
void _0621s3(); //声明四则混合运算练习的函数
void _0621s4(); //声明常用计算器的函数
void _0621s5(); //声明个税计算器的函数
void _0621s6(); //声明的函数
void _0621s7(); //声明的函数
void _0621s8(); //声明的函数
void _0621s9(); //声明的函数
void _0621s10(); //声明的函数
void _0621s11();
void _0621s12(); //声明的函数
int x1,x2,x3,x4,x5,x6,y,z1=0,z2=0,z,k,i,n=0;
int rand();
int main()
{
system("title 1121zhangsan");
system("date /T"); //显示当前日期
system("TIME /T"); //显示当前时间
system("VER"); //显示windows版本
system("color E4"); //改变运行界面的背景颜色和字体颜色
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
SMALL_RECT rc;
rc.Left = 0;
rc.Top = 0;
rc.Right = 75;
rc.Bottom = 30; //设置窗口的高度和宽度
SetConsoleWindowInfo(hOut, TRUE, &rc);
_0621s1();
return 0;
}
void _0621s1() //主界面函数
{
char a;
while(1)
{
cout<<"\t\t\t\t\n";
cout<<"----------------------------------------------------------------------------\n";
cout<<"\t\t\t\t\n";
cout<<"\t\t\t欢迎使用小学生算数练习系统\n";
cout<<"\t\t\t\t\n";
cout<<"----------------------------------------------------------------------------\n";
cout<<"\t\t\t\t\n";
cout<<"\t\t\t本系统有以下功能:\n";
cout<<"\t\t\t\t\n";
cout<<"\t\t\t1.加、减、乘、除运算的单项练习(100以内):\n";
cout<<"\t\t\t\t\n";
cout<<"\t\t\t2.四则混合运算练习:\n";
cout<<"\t\t\t\t\n";
cout<<"\t\t\t3.常用计算器:\n";
cout<<"\t\t\t\t\n";
cout<<"\t\t\t4.个税计算器:\n";
cout<<"\t\t\t\t\n";
cout<<"\t\t\t0.返回主界面\n";
cout<<"\t\t\t\t\n";
cout<<"\t\t\tps:输出其他内容将退出系统;\n";
cout<<"\t\t\t\t\n";
cout<<"请输入功能序号<0-4>:"<<endl;
cin>>a;
switch(a)
{
case '1':_0621s2();break; //加、减、乘、除运算的单项练习(100以内):
case '2':_0621s3();break; //四则混合运算练习
case '3':_0621s4();break; //常用计算器
case '4':_0621s5();break; //个税计算器
case '0': system("cls");_0621s1();
default:goto k; //跳转语句
}
}
k:system("pause"); //goto跳转到的语句