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

📄 firstfitview.h

📁 装箱问题的首次适应firstfit方法实现。VC开发图形界面显示。每次点击一下运行按钮装入一个箱子。箱子大小随机生成
💻 H
字号:
// firstfitView.h : interface of the CFirstfitView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_FIRSTFITVIEW_H__5FDF16CB_CD83_4032_949C_307236636E77__INCLUDED_)
#define AFX_FIRSTFITVIEW_H__5FDF16CB_CD83_4032_949C_307236636E77__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CFirstfitView : public CView
{
protected: // create from serialization only
	CFirstfitView();
	DECLARE_DYNCREATE(CFirstfitView)

// Attributes
public:
	CFirstfitDoc* GetDocument();
       int init();
	   int firstfit();
	   int M;
	   int Full;
// Operations
public:
      int obj[10];
	  int bin[10];
	  int locate[10];
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFirstfitView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CFirstfitView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CFirstfitView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnRun();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in firstfitView.cpp
inline CFirstfitDoc* CFirstfitView::GetDocument()
   { return (CFirstfitDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FIRSTFITVIEW_H__5FDF16CB_CD83_4032_949C_307236636E77__INCLUDED_)

⌨️ 快捷键说明

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