本次作业要求参见:[https://edu.cnblogs.com/campus/nenu/2019fall/homework/7631]
git地址:https://e.coding.net/wxyao/sizeyunsuan1.git
结对伙伴:王歆瑶
• 功能1. 四则运算
支持出题4个数的四则运算题目,所有题目要求作者有能力正确回答
功能一重难点:随机数生成,算式组合
随机数生成代码:
int tmp; //char str[20]; int i; bool F=true; for( i=0; i<7; i++) { if(i%2==0) { if(F) { str1[i]=rand()%10+'0'; } else { while(1) { tmp=rand()%10; if(tmp) { str1[i]=tmp+'0'; break; } } } } else { str1[i]=Flag(); if(str1[i]=='/') F=false; else F=true; } } str1[i]='