c语言学籍管理系统,采用链表书写,部分代码如下:
class CUserdlg : public CDialog
{
// Construction
public:
void DisplayRecord();
CUserdlg(CWnd* pParent = NULL); // standard constructor
CImageList m_ImageList;
CLoginSet* m_LoginSet;
// Dialog Data
//{{AFX_DATA(CUserdlg)
enum { IDD = IDD_Dlguser };
CListCtrl m_List;
CString m_Name;
CString m_PassWord;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUserdlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CUserdlg)
virtual BOOL OnInitDialog();
afx_msg void OnClose();
afx_msg void OnButtadd();
afx_msg void OnButmod();
afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnButdel();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
class CTeacherinfoset : public CRecordset
{
public:
CTeacherinfoset(CDatabase* pDatabase = NULL);
DECLARE_DYNAMIC(CTeacherinfoset)
// Field/Param Data
//{{AFX_FIELD(CTeacherinfoset, CRecordset)
CString m_teacherid;
CString m_teachername;
CString m_sex;
CString m_office;
CString m_knowledge;
CString m_Level;
//}}AFX_FIELD
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTeacherinfoset)
public:
virtual CString GetDefaultConnect(); // Default connection string
virtual CString GetDefaultSQL(); // Default SQL for Recordset
virtual void DoFieldExchange(CFieldExchange* pFX); // RFX support
//}}AFX_VIRTUAL
// Implementation
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
};