classroom.cpp

来自「导致教室占用的变更」· C++ 代码 · 共 37 行

CPP
37
字号
// ClassRoom.cpp: 主项目文件。

#include "stdafx.h"
#include "MainInterface.h"
#include "WaitInterface.h"

using namespace ClassRoom;

[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
	// 在创建任何控件之前启用 Windows XP 可视化效果
	Application::EnableVisualStyles();
	Application::SetCompatibleTextRenderingDefault(false); 

	WaitInterface^ wait = gcnew WaitInterface();

	System::Threading::ThreadStart^   ts   =   gcnew   System::Threading::ThreadStart(&WaitInterface::show); 
    System::Threading::Thread^  readThread = gcnew   System::Threading::Thread(ts); 

	System::Threading::ThreadStart^   ts1   =   gcnew   System::Threading::ThreadStart(wait,&WaitInterface::CreateMainInterface); 
    System::Threading::Thread^  readThread1 = gcnew   System::Threading::Thread(ts1); 

	readThread1->Start();
	readThread->Start();
	

	readThread->Sleep(2000);
	readThread->Abort();

	Thread::Sleep(1000);

	wait->main->ShowDialog();

	return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?