2021-01-13

写一个小学生加减乘除的c++系统

功能:实现任意两个随机数的运算。用多文件写

1.输入要计算的个数和计算符号
2.运算后要能看到正确答案
3.运算结束后能进行重新计算错题
4.将做的习题保存置其他txt文件中
5.尽量做到友善性,健硕性

pragma oncestruct test{	float x, y, z;	char sign;};struct score{	int n;   //计算总个数	int count;   //计算正确个数	int corr;    //计算错误个数	test no;};void mune();//加法运算void add(int & cor_count,int& count,score *note);//减法运算void sub(int& cor_count,int& count, score* note);//乘法运算void mul(int& cor_count,int& count, score* note);//除法运算void div(int& cor_count,int& count, score* note);//保存计算错误的void cuoti_note(float x, float y, float z, char sign,score *note,int count);//显示错误的计算void display(score* note, int count);//判断是什么计算int panduan(char sign);//是否重新计算int re_tf();//重新计算void re_test(score* note, int count);//总体计算的评价void score_judge(int count, int nn);//保存全部计算和答案到其他文件 void score_all(float x, float y, char sign,float z);//随机数的位数选择菜单void mune_2();//生成一定位数的随机数float rand_rand(int n);//输入位数函数int  weishu();
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值