统计正确率(未成功实现)git
判断相关运算并计算结果编程
switch(this.operator().toCharArray()[0]){ case '+':result=this.getA()+this.getB();break; case '-':result=this.getA()-this.getB();break; case '×':result=this.getA()*this.getB();break; case '÷':result=this.getA()/this.getB();break; }
使用Random类生成随机题目dom
a=new Random().nextInt(100); b=new Random().nextInt(100); i=new Random().nextInt(4);
Judge函数,用于判断答案是否正确函数
public boolean judge(String s){ int i,result = 0; try{ i=Integer.valueOf(s).intValue(); }catch(Exception e){ return false; }
码云连接学习
步骤 | 耗时 | 百分比 |
---|---|---|
学习相关思路 | 40min | 26% |
设计程序思路 | 30min | 20% |
代码实现 | 60min | 40% |
bug调试 | 20min | 13% |
博客总结 | 40min | 26% |
我与李天林同窗的相处很是融洽,代码编写的过程也是两人一块儿努力构思、努力实现的结果。没有什么特别须要改进的地方,望继续保持。this