powerset.cpp

来自「该软件实现了一个图书馆管理系统」· C++ 代码 · 共 64 行

CPP
64
字号
// PowerSet.cpp : implementation file
//

#include "stdafx.h"
#include "Forth.h"
#include "PowerSet.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPowerSet

IMPLEMENT_DYNAMIC(CPowerSet, CRecordset)

CPowerSet::CPowerSet(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CPowerSet)
	m_type = _T("");
	m_BorrowNumber = 0;
	m_nFields = 2;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}


CString CPowerSet::GetDefaultConnect()
{
	return _T("ODBC;DSN=homework");
}

CString CPowerSet::GetDefaultSQL()
{
	return _T("[dbo].[Power]");
}

void CPowerSet::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CPowerSet)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[type]"), m_type);
	RFX_Long(pFX, _T("[BorrowNumber]"), m_BorrowNumber);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CPowerSet diagnostics

#ifdef _DEBUG
void CPowerSet::AssertValid() const
{
	CRecordset::AssertValid();
}

void CPowerSet::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG

⌨️ 快捷键说明

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