ShowDlg.h
资源名称:DNA4.rar [点击查看]
上传用户:kanghaisi
上传日期:2017-04-20
资源大小:5727k
文件大小:2k
源码类别:
DNA
开发平台:
Visual C++
- #if !defined(AFX_SHOWDLG_H__DB38CC99_9A81_47A9_84FC_56E025186015__INCLUDED_)
- #define AFX_SHOWDLG_H__DB38CC99_9A81_47A9_84FC_56E025186015__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ShowDlg.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CShowDlg dialog
- class CShowDlg : public CDialog
- {
- // Construction
- public:
- void solve();
- void Tradtion(int t,int d);
- int tail(char *str,char *strCode);
- int head(char *str,char *strCode);
- int getid(char *str,int n);
- void connect(int n);
- bool str_compare(char *str,int n);
- void gettravel(int n);
- void init();
- CShowDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CShowDlg)
- enum { IDD = IDD_ShowDlg };
- CButton m_multithreadrun;
- CButton m_runold;
- CButton m_finish;
- CButton m_add;
- CButton m_runok;
- CString m_result;
- CString m_graph;
- CString m_resultold;
- int m_head;
- int m_tail;
- int m_vertex;
- int m_arc;
- CString m_multiresult;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CShowDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- CWinThread* pThread;
- // Generated message map functions
- //{{AFX_MSG(CShowDlg)
- afx_msg void OnRunok();
- afx_msg void OnAdd();
- afx_msg void OnFinish();
- afx_msg void OnRunold();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- struct threadInfo{
- char* vertex;//顶点的编码
- char* strDes;//生成边的编码
- UINT count;//增加的边的条数
- };
- UINT ThreadFunc(LPVOID lpParam);//线程函数
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SHOWDLG_H__DB38CC99_9A81_47A9_84FC_56E025186015__INCLUDED_)