attemperarithmetic.h
来自「进程或作业先来先服务、高优先权、按时间片轮转调度算法用API与C语言结合实现,绝」· C头文件 代码 · 共 228 行
H
228 行
// AttemperArithmetic.h : main header file for the ATTEMPERARITHMETIC application
//
#if !defined(AFX_ATTEMPERARITHMETIC_H__2F23C67F_88C9_49A0_B441_A5FBB8FF2F3B__INCLUDED_)
#define AFX_ATTEMPERARITHMETIC_H__2F23C67F_88C9_49A0_B441_A5FBB8FF2F3B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CAttemperArithmeticApp:
// See AttemperArithmetic.cpp for the implementation of this class
//
class CAttemperArithmeticApp : public CWinApp
{
public:
CAttemperArithmeticApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAttemperArithmeticApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CAttemperArithmeticApp)
afx_msg void OnAppAbout();
afx_msg void OnFcfsmunu();
afx_msg void OnClear();
afx_msg void OnTimeCycle();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// FCFS dialog
class FCFS : public CDialog
{
// Construction
public:
int SortT[5];
CString m0,m1,m2,m3,m4;
FCFS(CWnd* pParent = NULL); // standard constructor
CWinThread *p0Thread; //user defined
CWinThread *p1Thread;
CWinThread *p2Thread;
CWinThread *p3Thread;
CWinThread *p4Thread;
CWinThread *pEndThread;
// Dialog Data
//{{AFX_DATA(FCFS)
enum { IDD = IDD_FCFSSET };
CComboBox m_Thread5Priority;
CComboBox m_Thread4Priority;
CComboBox m_Thread3Priority;
CComboBox m_Thread2Priority;
CComboBox m_Thread1Priority;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(FCFS)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
char T2[5][255];
char a[255];
char T1[5][255];
// Generated message map functions
//{{AFX_MSG(FCFS)
virtual BOOL OnInitDialog();
afx_msg void OnKillFocus(CWnd* pNewWnd);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// Info dialog
class Info : public CDialog
{
// Construction
public:
Info(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(Info)
enum { IDD = IDD_DLGINF };
CString m_n;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(Info)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(Info)
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// TC dialog
class TC : public CDialog
{
// Construction
public:
CString tc0;
CString tc1;
CString tc2;
CString tc3;
CString tc4;
TC(CWnd* pParent = NULL); // standard constructor
CWinThread *tc0Thread; //user defined
CWinThread *tc1Thread;
CWinThread *tc2Thread;
CWinThread *tc3Thread;
CWinThread *tc4Thread;
CWinThread *tcInitThread;
// CWinThread *tcEndThread;
// Dialog Data
//{{AFX_DATA(TC)
enum { IDD = IDD_TimeC };
CComboBox m_Arr5;
CComboBox m_Arr4;
CComboBox m_Arr3;
CComboBox m_Arr2;
CComboBox m_Arr1;
int m_TS;
int m_Ser1;
int m_Ser2;
int m_Ser3;
int m_Ser4;
int m_Ser5;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(TC)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(TC)
virtual BOOL OnInitDialog();
afx_msg void OnKillFocus(CWnd* pNewWnd);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// TCSI dialog
class TCSI : public CDialog
{
// Construction
public:
TCSI(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(TCSI)
enum { IDD = IDD_DLGTCSETINFO };
CString m_ArrQ;
int m_S1;
int m_S2;
int m_S3;
int m_S4;
int m_S5;
int m_ts;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(TCSI)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(TCSI)
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ATTEMPERARITHMETIC_H__2F23C67F_88C9_49A0_B441_A5FBB8FF2F3B__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?