io.cpp

来自「本软件实现了模拟cpu的基本工作原理和工作过程」· C++ 代码 · 共 59 行

CPP
59
字号
// IO.cpp: implementation of the IO class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "AM.h"
#include "IO.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

IO::IO():	INPUT(CRect(845,275,950,305),"输入设备:"),
			OUTPUT(CRect(845,318,950,348),"输出设备:")
{
	WRITE[0].x=970;
	WRITE[0].y=21;
	WRITE[0].w=12;
	WRITE[0].h=278;
	WRITE[0].type=1;
	WRITE[0].arrow1=1;
	WRITE[0].arrow2=0;
	WRITE[0].shine=0;

	WRITE[1].x=949;
	WRITE[1].y=290;
	WRITE[1].w=30;
	WRITE[1].h=12;
	WRITE[1].type=0;
	WRITE[1].arrow1=0;
	WRITE[1].arrow2=0;
	WRITE[1].shine=0;

	DISPLACE[0].x=949;
	DISPLACE[0].y=327;
	DISPLACE[0].w=54;
	DISPLACE[0].h=12;
	DISPLACE[0].type=0;
	DISPLACE[0].arrow1=1;
	DISPLACE[0].arrow2=0;
	DISPLACE[0].shine=0;

	DISPLACE[1].x=994;
	DISPLACE[1].y=21;
	DISPLACE[1].w=12;
	DISPLACE[1].h=315;
	DISPLACE[1].type=1;
	DISPLACE[1].arrow1=0;
	DISPLACE[1].arrow2=0;
	DISPLACE[1].shine=0;
}

⌨️ 快捷键说明

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