📄 global.cpp
字号:
// Global.cpp: implementation of the CGlobal class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "libraryMS.h"
#include "Global.h"
#include "Users.h"
#include "Reader.h"
#include "Book.h"
#include "Borrow.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CUsers curUser;
CReader BReader;
CBook BBook;
CBorrow BorrowBook;
CString flag = "0";
int i = 1;//标识数据库是否连接
_bstr_t ConnectionString = "127.0.0.1";
_bstr_t UserID = "sa";
_bstr_t Password = "";
_bstr_t strConnect = "Provider=SQLOLEDB;Server="+ConnectionString+";Database=libraryMS;User ID="+UserID+";pwd="+Password+";";
CGlobal::CGlobal()
{
}
CGlobal::~CGlobal()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -