#include #include #include #include #include #include #include #include #include #include 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; /// /// Form1 的摘要 /// int time; public ref class Form1 : public System::Windows::Forms::Form { public: Form1(void) { InitializeComponent(); // //TODO: 在此加入建構函式程式碼 // } protected: /// /// 清除任何使用中的?E翩C /// ~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: