学生系统.txt

来自「考试系统 实现在线考试中的各项操作的源代码」· 文本 代码 · 共 47 行

TXT
47
字号
1 登陆模块:
普通登陆:用户名(唯一),密码









0.0<(int)(Math.random()*100)<100
a+b   :a=90    b=(100-a)
a-b   :
a*b   :
a/b   :
(2)提交方式:
类Timer:用于控制时间:每隔多长时间执行一次某个任务。
Timer time=new Timer(延迟时间,时间处理);
start();
stop();
每隔一秒钟显示
class Test implements ActionListener
{
	private JLalel lbl;

	public void actionPerformed(ActionEvent e)
	{
		int value=Integer.parseInt(lbl.getText());//返回String
		value++;
		lbl.setText(value+"");
	}

	public Test()
	{}

	public void initGUI()
	{
		lbl=new JLabel("0");
		timer=new Timer(1000,this);
	}
}
(3)集合:ArrayList/HashSet来管理题目,
class Question
{
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?