⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 图灵机的模拟程序
💻 TXT
字号:
============================================
作者:刘涛
单位:西安交通大学
电子邮件:service@longen.com
http://www.longen.com
============================================

图灵类:

LeftString, RightString是两上字符串,代表输入和输出状态;输入和输出状态只能有
0和1这两个数字组成;

内部状态:2个内容状态,由一个变量Status代表,如果它为0,则代表左边的按键选上;
如果它为1,则代表右边的按键选上;

成员函数只有一个:ChangeStatus,它的作就是改变当前状态,直到LeftString为空;

状态改变的规则如下:(这个表很重要)

输入	当前状态	生成状态	输出
0		Left		Left		0
0		Right		Left		1
1		Left		Right		1
1		Right		Right		1

=============================================
经验所得:
=============================================
1、加入了一点小功能,也就是最小化的时候可以最小化到右边的任务栏中;
2、同时也解决了静态文本框如何接收消息的问题,就在属性栏中Sytle下的Notify中,
   选中了它就可以了;
3、单击那个小图标后,可以恢复原来的窗口,使用的函数是CWnd::ShowWindow(SW_RESTORE);

=============================================
不足之处:
=============================================
1、因为重载了OnCancel()函数,因此对话框右边的关闭按键失效了;

========================================================================
       MICROSOFT FOUNDATION CLASS LIBRARY : Turning
========================================================================


AppWizard has created this Turning application for you.  This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.

This file contains a summary of what you will find in each of the files that
make up your Turning application.

Turning.dsp
    This file (the project file) contains information at the project level and
    is used to build a single project or subproject. Other users can share the
    project (.dsp) file, but they should export the makefiles locally.

Turning.h
    This is the main header file for the application.  It includes other
    project specific headers (including Resource.h) and declares the
    CTurningApp application class.

Turning.cpp
    This is the main application source file that contains the application
    class CTurningApp.

Turning.rc
    This is a listing of all of the Microsoft Windows resources that the
    program uses.  It includes the icons, bitmaps, and cursors that are stored
    in the RES subdirectory.  This file can be directly edited in Microsoft
	Visual C++.

Turning.clw
    This file contains information used by ClassWizard to edit existing
    classes or add new classes.  ClassWizard also uses this file to store
    information needed to create and edit message maps and dialog data
    maps and to create prototype member functions.

res\Turning.ico
    This is an icon file, which is used as the application's icon.  This
    icon is included by the main resource file Turning.rc.

res\Turning.rc2
    This file contains resources that are not edited by Microsoft 
	Visual C++.  You should place all resources not editable by
	the resource editor in this file.




/////////////////////////////////////////////////////////////////////////////

AppWizard creates one dialog class:

TurningDlg.h, TurningDlg.cpp - the dialog
    These files contain your CTurningDlg class.  This class defines
    the behavior of your application's main dialog.  The dialog's
    template is in Turning.rc, which can be edited in Microsoft
	Visual C++.


/////////////////////////////////////////////////////////////////////////////
Other standard files:

StdAfx.h, StdAfx.cpp
    These files are used to build a precompiled header (PCH) file
    named Turning.pch and a precompiled types file named StdAfx.obj.

Resource.h
    This is the standard header file, which defines new resource IDs.
    Microsoft Visual C++ reads and updates this file.

/////////////////////////////////////////////////////////////////////////////
Other notes:

AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.

If your application uses MFC in a shared DLL, and your application is 
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC42XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL.  ("XXX" stands for the language abbreviation.
For example, MFC42DEU.DLL contains resources translated to German.)  If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.

/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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