Form1.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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;
using System.IO;

namespace 猜密码
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Random myrand = new Random();
            string str = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
            string mys = "";
            for (int i = 0; i <= 1; i++)
                mys = mys + str[myrand.Next(62)];
            this.textBox1.Text = mys;

        }

        private void button2_Click(object sender, EventArgs e)
        {

            int a, b;
            string myc = "";
            string str = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
            string mys = this.textBox1.Text;
            Int64 mytime1, mytime2;
            mytime1 = DateTime.Now.Hour * 3600 + DateTime.Now.Minute * 60 + DateTime.Now.Second;
            for (a = 0; a <= 61; a++)
            {
                for (b = 0; b <= 61; b++)
                {
                    myc = str.Substring(a, 1) + str.Substring(b, 1);
                    this.textBox2.Text = myc;
                    mytime2 = DateTime.Now.Hour * 3600 + DateTime.Now.Minute * 60 + DateTime.Now.Second;
                    if (mytime2 < mytime1)
                        mytime2 = mytime2 + 24 * 3600;
                    this.label1.Text = "所用时间:" + (mytime2 - mytime1).ToString() + "秒";
                    this.Refresh();
                    if (mys == myc)
                    {
                        this.textBox2.Text = myc;
                        a = 63;
                        b = 63;

                    }
                }
            }
            System.IO.StreamWriter swobj = System.IO.File.AppendText("F:\\1.txt");
后面还有 9 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。