mirror of
https://github.com/This-weiyuqing/javaAutoScore.git
synced 2026-10-17 18:55:31 +08:00
finale3
no change
This commit is contained in:
1 parent
878c8c7644
commit
7981d29dc9
7 files changed
+14
-9
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -99,6 +99,8 @@ public class mainGUI extends JFrame implements ActionListener {
|
|||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
//int用来存储现在是第几题
|
//int用来存储现在是第几题
|
||||||
//int whatQuestionW;
|
//int whatQuestionW;
|
||||||
|
if (whatQuestion < 1) {
|
||||||
|
|
||||||
|
|
||||||
// for (whatQuestionW = 0; whatQuestionW < 1; whatQuestionW++) {
|
// for (whatQuestionW = 0; whatQuestionW < 1; whatQuestionW++) {
|
||||||
//int whatQuestionW =0;
|
//int whatQuestionW =0;
|
||||||
@@ -107,7 +109,7 @@ public class mainGUI extends JFrame implements ActionListener {
|
|||||||
str = "A";
|
str = "A";
|
||||||
scoreUser = chooseDo(str, whatQuestionW, scoreUser);
|
scoreUser = chooseDo(str, whatQuestionW, scoreUser);
|
||||||
whatQuestion = whatQuestionW++;
|
whatQuestion = whatQuestionW++;
|
||||||
whatQuestionW=whatQuestionW++;
|
whatQuestionW = whatQuestionW++;
|
||||||
//actionPerformed(ActionEvent e);
|
//actionPerformed(ActionEvent e);
|
||||||
}
|
}
|
||||||
/*str = "A";
|
/*str = "A";
|
||||||
@@ -131,36 +133,39 @@ public class mainGUI extends JFrame implements ActionListener {
|
|||||||
str = "B";
|
str = "B";
|
||||||
scoreUser = chooseDo(str, whatQuestionW, scoreUser);
|
scoreUser = chooseDo(str, whatQuestionW, scoreUser);
|
||||||
whatQuestion = whatQuestionW++;
|
whatQuestion = whatQuestionW++;
|
||||||
whatQuestionW=whatQuestionW++;
|
whatQuestionW = whatQuestionW++;
|
||||||
// System.out.println(whatQuestionW);
|
// System.out.println(whatQuestionW);
|
||||||
}
|
}
|
||||||
if (e.getActionCommand().equals("C")) {
|
if (e.getActionCommand().equals("C")) {
|
||||||
str = "C";
|
str = "C";
|
||||||
scoreUser = chooseDo(str, whatQuestionW, scoreUser);
|
scoreUser = chooseDo(str, whatQuestionW, scoreUser);
|
||||||
whatQuestion = whatQuestionW++;
|
whatQuestion = whatQuestionW++;
|
||||||
whatQuestionW=whatQuestionW++;
|
whatQuestionW = whatQuestionW++;
|
||||||
}
|
}
|
||||||
if (e.getActionCommand().equals("D")) {
|
if (e.getActionCommand().equals("D")) {
|
||||||
str = "D";
|
str = "D";
|
||||||
scoreUser = chooseDo(str, whatQuestionW, scoreUser);
|
scoreUser = chooseDo(str, whatQuestionW, scoreUser);
|
||||||
whatQuestion=whatQuestionW++;
|
whatQuestion = whatQuestionW++;
|
||||||
whatQuestionW=whatQuestionW++;
|
whatQuestionW = whatQuestionW++;
|
||||||
}
|
}
|
||||||
|
} else
|
||||||
//whatQuestionW++;
|
//whatQuestionW++;
|
||||||
// }
|
// }
|
||||||
//这里写最后结果被写入文件夹啊
|
//这里写最后结果被写入文件夹啊
|
||||||
|
{
|
||||||
try {
|
try {
|
||||||
String studetnNum=new String();
|
String studetnNum = new String();
|
||||||
scoreToTxt(userIn.getStudentNumber(),scoreUser);
|
scoreToTxt(userIn.getStudentNumber(), scoreUser);
|
||||||
System.out.println(userIn.getStudentNumber());
|
System.out.println(userIn.getStudentNumber());
|
||||||
//dispose();
|
//dispose();
|
||||||
//System.exit(0);
|
System.exit(0);
|
||||||
|
|
||||||
} catch (IOException ioException) {
|
} catch (IOException ioException) {
|
||||||
ioException.printStackTrace();
|
ioException.printStackTrace();
|
||||||
System.out.println("抛出异常1");
|
System.out.println("抛出异常1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,6 @@ public class useInDemo {
|
|||||||
System.out.println("stop question");
|
System.out.println("stop question");
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
},6000);
|
},10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user