c++小学生算数练习系统课程设计

#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跳转到的语句

  • 7
    点赞
  • 37
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值