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