show.cpp

来自「编译原理实践教程PL0语言编译程序源代码。参考书:清华大学出版社的《编译原理》作」· C++ 代码 · 共 68 行

CPP
68
字号
// Show.cpp : implementation file
//

#include "stdafx.h"
#include "PL0.h"
#include "Show.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Show dialog


Show::Show(CWnd* pParent /*=NULL*/)
	: CDialog(Show::IDD, pParent)
{
	//{{AFX_DATA_INIT(Show)
	m_Variable = 0;//
	//}}AFX_DATA_INIT

	flag=false;
}
/*bool Show::GetFlag()
{
	return  flag ;
}
int Show::OpenDialogInput(Show Input)
{
            if(Input)
				Input->SetActiveWindow();
			else
			{
				Input=new Show(this);
				Input->Create(IDD_Show,this);
			}
}*/


void Show::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Show)
	DDX_Text(pDX, IDC_EDIT1, m_Variable);
	DDV_MinMaxInt(pDX, m_Variable, -2147483648, 2147483647);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Show, CDialog)
	//{{AFX_MSG_MAP(Show)
	ON_BN_CLICKED(IDC_Exit, OnExit)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Show message handlers

void Show::OnExit() 
{
	// TODO: Add your control notification handler code here
	    flag=true;
		CDialog::OnOK(); 
}

⌨️ 快捷键说明

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