#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fstream>
#include <cstdlib>
#include<iostream>
#include<algorithm>
#include<Windows.h>
#include<string>
#include<time.h>
using namespace std;
#pragma once
int findpos(string a, string b)
{
// a is html code, b is compare string
int found = 0;
if(a.find(b))
{
found = a.find(b);
}
return found;
}
namespace Test {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Text::RegularExpressions;
using namespace System::Collections::Generic;
using namespace System::Drawing;
/// <summary>
/// Form1 的摘要
/// </summary>
int time;
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: 在此加入建構函式程式碼
//
}
protected:
/// <summary>
/// 清除任何使用中的?E翩C
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::WebBrowser^ webBrowser1;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::PictureBox^ pictureBox1;
private: System::Windows::Forms::TextBox^ textBox1;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::TextBox^ textBox2;
private: System::Windows::Forms::Button^ button2;
protected:
public: String^ challenge;
private: System::Windows::Forms::Label^ label3;
public:
private: System::Windows::Forms::Timer^ timer1;
private: System::Windows::Forms::Label^ label4;
private: System::ComponentModel::IContainer^ components;
private: