摘要: 阅读全文
posted @ 2021-06-22 12:26 计应192西三组 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 计应192(西)—第三组—黄如意 思路: 用一个列表让用户选择加减乘除运算,生成两个随机数与运算符结合形成算式,用户输入结果后提交,系统做出判断并展示在listBox1中,listBox1中展示用户做题的记录以及对错,右侧则展示用户正确的题数,点击重新答题则会清空listBox1中的历史记录和用户正 阅读全文
posted @ 2021-05-31 19:24 计应192西三组 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int main(){ int a,b,c,m,t; printf("请输入两个数:\n"); scanf("%d%d",&a,&b); if(a<b) { t=a; a=b; b=t; } m=a*b; c=a%b; while(c!=0) { a=b; b=c 阅读全文
posted @ 2021-04-11 16:40 计应192西三组 阅读(50) 评论(0) 推荐(0) 编辑
摘要: class Program { Random random = new Random(); void 计算器(int 数量) { int 正确数量 = 0; int 次数 = 0; while (次数<数量) { int 运算符 = random.Next(0, 3); int 操作数1 = ran 阅读全文
posted @ 2021-04-11 16:18 计应192西三组 阅读(39) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { mathvoid op = new mathvoid(); string Z = ""; do { Console.WriteLine(" 四则运算 "); Console.WriteLine("") 阅读全文
posted @ 2021-04-11 16:14 计应192西三组 阅读(34) 评论(0) 推荐(0) 编辑
摘要: public partial class Form1 : Form{public Form1(){InitializeComponent();} int a, b,aaa,bbb,bb; string op;string op1;string op2; int result;int result1; 阅读全文
posted @ 2021-04-11 16:11 计应192西三组 阅读(45) 评论(0) 推荐(0) 编辑
摘要: namespace lj{ class Program { static void Main(string[] args) { while (true) { Random shuijishu = new Random(); int shu1 = shuijishu.Next(0, 100); int 阅读全文
posted @ 2021-04-11 13:54 计应192西三组 阅读(39) 评论(0) 推荐(0) 编辑
摘要: namespace lh{ class Program { static void Main(string[] args) { while (true) { Random shuijishu = new Random(); int shuijishu1 = shuijishu.Next(0, 100 阅读全文
posted @ 2021-04-11 13:45 计应192西三组 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 需求分析:作为一个一年级的小学生老师,我希望有一个软件可以按照我意思给出两位数的加减乘除的式子,并且可以计算孩子的答案是否正确。给出正确的题数 具体思想:定义变量来接受客户给出的题数,给出的俩个数字,客户想进行的运算(1,2,3,4,其中1代表加法,2代表减法,3代表乘法,4代表除法),以及定义好加 阅读全文
posted @ 2021-04-09 13:00 计应192西三组 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 设计模式总结 设计模式的六大原则 单一职责原则(SRP):引起类变化的原因不能多于一个。也就是说每一个类只负责自己的事情,此所谓单一职责。 里氏替换原则(LSP):只要父类能出现的地方子类就可以出现,而且替换为子类也不会产生任何错误或异常,使用者可能根本就不需要知道是父类还是子类。但是,反过来就不行 阅读全文
posted @ 2021-03-05 15:36 计应192西三组 阅读(61) 评论(0) 推荐(0) 编辑