91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 50KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-06
  • 語言: C#
  • 標簽: c#??

資源簡介

自動出題判分小程序,可以自動出題,顯示答案,對結(jié)果進行判斷正誤,難易程度,快進慢退,對做題結(jié)果進行統(tǒng)計,適合初學(xué)者學(xué)習(xí)借鑒

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;

namespace?automatic
{
????public?partial?class?frmMatic?:?Form
????{
????????public?frmMatic()
????????{
????????????InitializeComponent();
????????}

????????int?a?b;
????????string?op;
????????int?result;
????????Random?rnd?=?new?Random();

????????private?void?frmMatic_Load(object?sender?EventArgs?e)
????????{
????????????label5.Text?=?“默認5s“;
????????????label6.Text?=?““;
????????????matic();
????????????
????????}

????????double?ccount;
????????private?void?btnOk_Click(object?sender?EventArgs?e)
????????{
????????????matic();
????????????ccount++;

????????}

????????private?void?timer1_Tick(object?sender?EventArgs?e)
????????{
????????????if?(chkBox1.Checked)
????????????{
????????????????matic();
????????????????ccount++;
????????????}
????????}
????????//出題
????????void?matic()?
????????{
????????????
????????????a?=?rnd.Next(9)?+?1;
????????????b?=?rnd.Next(9)?+?1;
????????????op?=?“+“;
????????????result?=?a?+?b;
????????????if?(radBtn2.Checked)
????????????{
????????????????op?=?“+“;
????????????????a?=?rnd.Next(19)?+?1;
????????????????b?=?rnd.Next(19)?+?1;
????????????????result?=?a?+?b;
????????????}
????????????else?if?(radBtn3.Checked)
????????????{
????????????????op?=?“*“;
????????????????result?=?a?*?b;
????????????}
????????????label1.Text?=?a.ToString();
????????????label3.Text?=?b.ToString();
????????????label2.Text?=?op;
????????????textBox1.Text?=?““;
????????????textBox1.Enabled?=?true;
????????????textBox1.Focus();
????????????textBox1.Font?=?new?Font(“宋體“?30);??????????????
????????????textBox1.BackColor?=?Color.White;
????????
????????}
????????//難易程度判斷
???????void?level()
???????{
???????????{
???????????????switch?((a?+?b)?/?10)
???????????????{
???????????????????case?0:
???????????????????????textBox1.Text?=?“☆“;
???????????????????????break;
???????????????????case?1:
???????????????????????textBox1.Text?=?“☆☆“;
???????????????????????break;
???????????????????default:
???????????????????????textBox1.Text?=?“☆☆☆“;
???????????????????????break;
???????????????}

???????????}
???????????
???????}
???????double?sumcoutcocountfalcount;
????????private?void?textBox1_KeyDown(object?sender?KeyEventArgs?e)
????????{
?????????????string?str?=?textBox1.Text.Trim();
?????????????
????????????if?(e.KeyCode?==?Keys.Enter?&&?str?==?““)
????????????{
????????????????MessageBox.Show(“請輸入答案“?“提示“?MessageBoxButtons.OK?MessageBoxIcon.Warning);
????????????}
????????????if?(e.KeyCode?==?Keys.Enter?&&?str?!=?““)
????????????{???????????
????????????????double?d?=?double.Parse(str);
????????????????if?(d?==?result)
????????????????{
????????????????????textBox1.BackColor?=?Color.SeaGreen;
????????????????????textBox1.Font?=?new?Font

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1374??2014-12-17?14:15??automatic\automatic\Properties\AssemblyInfo.cs

?????文件???????5612??2014-12-17?14:15??automatic\automatic\Properties\Resources.resx

?????文件???????2869??2014-12-17?14:15??automatic\automatic\Properties\Resources.Designer.cs

?????文件????????249??2014-12-17?14:15??automatic\automatic\Properties\Settings.settings

?????文件???????1095??2014-12-17?14:15??automatic\automatic\Properties\Settings.Designer.cs

?????文件???????6214??2014-12-20?11:41??automatic\automatic\Form1.cs

?????文件??????12690??2014-12-19?18:00??automatic\automatic\Form1.Designer.cs

?????文件????????493??2014-12-17?14:33??automatic\automatic\Program.cs

?????文件???????3718??2014-12-18?08:45??automatic\automatic\automatic.csproj

?????文件????????490??2010-03-17?22:39??automatic\automatic\bin\Debug\automatic.vshost.exe.manifest

?????文件??????11600??2014-12-20?11:30??automatic\automatic\bin\Debug\automatic.vshost.exe

?????文件??????14848??2014-12-20?11:23??automatic\automatic\bin\Debug\automatic.exe

?????文件??????30208??2014-12-20?11:23??automatic\automatic\bin\Debug\automatic.pdb

?????文件???????6231??2014-12-20?11:23??automatic\automatic\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

?????文件????????180??2014-12-19?18:00??automatic\automatic\obj\x86\Debug\automatic.frmMatic.resources

?????文件????????180??2014-12-18?08:45??automatic\automatic\obj\x86\Debug\automatic.Properties.Resources.resources

?????文件????????196??2014-12-19?18:00??automatic\automatic\obj\x86\Debug\GenerateResource.read.1.tlog

?????文件????????504??2014-12-19?18:00??automatic\automatic\obj\x86\Debug\GenerateResource.write.1.tlog

?????文件??????30208??2014-12-20?11:23??automatic\automatic\obj\x86\Debug\automatic.pdb

?????文件??????14848??2014-12-20?11:23??automatic\automatic\obj\x86\Debug\automatic.exe

?????文件????????595??2014-12-20?11:30??automatic\automatic\obj\x86\Debug\automatic.csproj.FileListAbsolute.txt

?????文件???????4440??2014-12-17?18:04??automatic\automatic\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

?????文件???????7897??2014-12-17?18:08??automatic\automatic\obj\x86\Debug\ResolveAssemblyReference.cache

?????文件???????6206??2014-12-19?18:00??automatic\automatic\Form1.resx

?????文件??????????1??2014-12-18?08:43??automatic\automatic\ClassDiagram1.cd

?????文件????????869??2014-12-17?14:15??automatic\automatic.sln

????..A..H.?????18432??2014-12-20?11:41??automatic\automatic.suo

?????文件????????230??2014-12-20?11:40??automatic\算術(shù)練習(xí)說明.txt

?????目錄??????????0??2014-12-17?14:15??automatic\automatic\obj\x86\Debug\TempPE

?????目錄??????????0??2014-12-17?14:15??automatic\automatic\obj\x86\Debug

............此處省略10個文件信息

評論

共有 條評論