写一个小学生加减乘除的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();