longestseqview.h

来自「该程序为算法分析中的一个经典问题」· C头文件 代码 · 共 81 行

H
81
字号
// LongestSeqView.h : interface of the CLongestSeqView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LONGESTSEQVIEW_H__04D78CB4_50EB_4D7C_A579_FF74ADE59F09__INCLUDED_)
#define AFX_LONGESTSEQVIEW_H__04D78CB4_50EB_4D7C_A579_FF74ADE59F09__INCLUDED_

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


class CLongestSeqView : public CFormView
{
public:
	int GetIntArray(int a[],char * s);
	int DoIt(int a[],int n);
	int ConstructSeq(int a[],int c[],int Pos,char * z);
	int OnlyLength(int a[],int n);
	int FindMin(int a[],int n);
protected: // create from serialization only
	CLongestSeqView();
	DECLARE_DYNCREATE(CLongestSeqView)

public:
	//{{AFX_DATA(CLongestSeqView)
	enum{ IDD = IDD_LONGESTSEQ_FORM };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:
	CLongestSeqDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLongestSeqView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CLongestSeqView)
	afx_msg void OnButton1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in LongestSeqView.cpp
inline CLongestSeqDoc* CLongestSeqView::GetDocument()
   { return (CLongestSeqDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_LONGESTSEQVIEW_H__04D78CB4_50EB_4D7C_A579_FF74ADE59F09__INCLUDED_)

⌨️ 快捷键说明

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