基本信息
源码名称:随机生成口算(加、减、乘、除)
源码大小:3.05M
文件格式:.zip
开发语言:C#
更新时间:2019-12-29
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 2 元 
   源码介绍
随机生成十题口算题


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using 实验四;

namespace 口算
{
    public partial class newForm : Form
    {
        public newForm()
        {
            InitializeComponent();
        }
        Panel[] ps = new Panel[10];
        Label[] ls = new Label[10];
        TextBox[] ts = new TextBox[10];
        private void NewForm_Load(object sender,EventArgs e)
        {

            this.Width = 200;
            Calculate ical;
           
          
            
            for (int i = 0; i < 10; i )
            {
                ps[i] = new Panel();
                ps[i].Width = 176;
                ps[i].Height = 38;
                ps[i].Location = new Point(0, i*38);
               
               
                ls[i] = new Label();
                ls[i].Width=75;
                ls[i].Height=20;
                ls[i].Location = new Point(10,9);
                ps[i].Controls.Add(ls[i]);

                ts[i] = new TextBox();
                ts[i].Width=75;
                ts[i].Height=20;
                ts[i].Location = new Point(95, 9);
                ps[i].Controls.Add(ts[i]);

                this.Controls.Add(ps[i]);
                int s = Program.r.Next(1, 5);
                ical = Factory.CreateInstance(s);
                ls[i].Text = ical.Exp();
               // Console.WriteLine(ical.Cal());
            }
        }
        }
}