资源简介
MFC实现简单图书馆管理系统。实现图书的借阅、归还,图书信息录入读出,读者信息管理,借书信息等

代码片段和文件信息
// bookdlg.cpp : implementation file
//
#include “stdafx.h“
#include “test.h“
#include “bookdlg.h“
#include “fstream.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Cbookdlg dialog
Cbookdlg::Cbookdlg(CWnd* pParent /*=NULL*/)
: CDialog(Cbookdlg::IDD pParent)
{
//{{AFX_DATA_INIT(Cbookdlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void Cbookdlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Cbookdlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Cbookdlg CDialog)
//{{AFX_MSG_MAP(Cbookdlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Cbookdlg message handlers
BOOL Cbookdlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
ifstream file(“book.txt“);
char ch[100];
int n=1;
while(file.getline(chsizeof(ch)‘;‘))
{
if(n==1)
{
((CListBox*)GetDlgItem(IDC_LIST3))->AddString(ch);
n=0;
}
else if(n==0)
{n=1;}
else {((CListBox*)GetDlgItem(IDC_LIST3))->AddString(“发生错误!“);}
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-07-16 12:41 test\
文件 0 2014-06-26 15:21 test\(null).txt
文件 0 2014-07-07 21:11 test\01.txt
文件 0 2014-07-07 21:11 test\02.txt
文件 0 2014-07-07 21:11 test\03.txt
文件 0 2014-06-26 15:21 test\05.txt
文件 0 2014-06-26 15:21 test\06.txt
文件 314 2014-07-07 21:11 test\book.txt
文件 1507 2014-06-25 11:17 test\bookdlg.cpp
文件 1201 2014-06-25 11:17 test\bookdlg.h
文件 4185 2014-06-24 17:54 test\bookdlg1.cpp
文件 1344 2014-06-21 17:23 test\bookdlg1.h
文件 2948 2014-06-26 13:31 test\bookdlg2.cpp
文件 1251 2014-06-23 01:46 test\bookdlg2.h
文件 1037 2014-06-22 02:37 test\bookdlg3.cpp
文件 1183 2014-06-22 02:29 test\bookdlg3.h
目录 0 2014-07-07 21:19 test\Debug\
文件 110 2014-06-26 16:55 test\Debug\book.txt
文件 13316 2014-07-07 21:19 test\Debug\bookdlg.obj
文件 0 2014-07-07 21:19 test\Debug\bookdlg.sbr
文件 26670 2014-07-07 21:19 test\Debug\bookdlg1.obj
文件 0 2014-07-07 21:19 test\Debug\bookdlg1.sbr
文件 21310 2014-07-07 21:19 test\Debug\bookdlg2.obj
文件 0 2014-07-07 21:19 test\Debug\bookdlg2.sbr
文件 12749 2014-06-22 02:37 test\Debug\bookdlg3.obj
文件 0 2014-06-22 02:37 test\Debug\bookdlg3.sbr
文件 24054 2014-07-07 21:19 test\Debug\LoginDlg.obj
文件 0 2014-07-07 21:19 test\Debug\LoginDlg.sbr
文件 21394 2014-07-07 21:19 test\Debug\LoginDlg2.obj
文件 0 2014-07-07 21:19 test\Debug\LoginDlg2.sbr
文件 17048 2014-06-24 23:23 test\Debug\LoginDlg3.obj
............此处省略117个文件信息
相关资源
- 基于MFC的TCP调试助手源码95706
- 基于mfc的多线程文件传输
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- MFC五子棋游戏
- MFC UDP编程
- MFC的异步网络通讯应用程序
- C++MFC模块讲解,黑发程序员课程整理
- 一个简单而强大的基于MFC的web server源
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- MFCaccess.rar
- VC++MFC课程设计的学生成绩管理系统
- MFC 日历控件 万年历 Calendar自绘
- CrystalDiskInfo-HDD/SSD硬盘信息,SMART信息
- MFC自定义界面HUI,高效简单,含详细
- 仿射密码-Affine cipher
- c++MFC车牌自动识别定位,只能定位和
- mfc+sql 酒店客房管理系统
- 基于图割的图像分割OpenCV+MFC实现
- MFC绘制Bezier曲线B样条曲线曲线拟合
评论
共有 条评论