You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 中小学数学卷子自动生成程序
## 程序介绍
这是一个用于自动生成小学、初中和高中数学题目的程序可以根据用户选择的难度级别生成10-30道数学题目并保存为文本文件。
## 运行环境
- 需要安装Java运行环境(JRE) 8或更高版本
- Windows系统
## 编译方法
1. 打开命令提示符(cmd)
2. 进入程序源代码目录
```
cd 项目根目录\src
```
3. 编译Java源代码
```
javac -encoding UTF-8 *.java
```
## 运行步骤
1. 打开命令提示符(cmd)
2. 进入程序源代码目录
```
cd 项目根目录\src
```
3. 运行程序
```
java MathExamGenerator
```
## 使用说明
1. 程序启动后,会提示您输入用户名和密码进行登录
2. 登录成功后,可以输入题目数量(10-30之间)生成对应级别的数学题目
3. 生成的题目会保存在以用户名命名的目录下,文件名包含时间戳
4. 您可以输入'切换为小学'、'切换为初中'或'切换为高中'来切换题目难度
5. 输入-1可以退出当前用户重新登录
## 账户信息
预设了小学、初中和高中各三个账户密码均为123
- 小学账户张三1、张三2、张三3
- 初中账户李四1、李四2、李四3
- 高中账户王五1、王五2、王五3
## 注意事项
- 确保您的命令提示符使用GBK编码以正确显示中文
- 题目数量必须在10-30之间
- 生成的题目文件会保存在程序所在目录的用户名下