91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 30.98MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-06-30
  • 語(yǔ)言: C/C++
  • 標(biāo)簽:

資源簡(jiǎn)介

MFC創(chuàng)建的圖書(shū)管理系統(tǒng),用c++編寫(xiě),可以完成正常的圖書(shū)館日常工作

資源截圖

代碼片段和文件信息

//?AddBooks.cpp?:?實(shí)現(xiàn)文件
//

#include?“stdafx.h“
#include?“LibrarySystem.h“
#include?“AddBooks.h“
#include?“afxdialogex.h“
#include?“Book.h“
#include?
using?namespace?std;

//?AddBooks?對(duì)話框

IMPLEMENT_DYNAMIC(AddBooks?CDialog)

AddBooks::AddBooks(CWnd*?pParent?/*=NULL*/)
:?CDialog(AddBooks::IDD?pParent)
{

}

AddBooks::~AddBooks()
{
}

void?AddBooks::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(AddBooks?CDialog)
ON_BN_CLICKED(IDOK?&AddBooks::OnBnClickedOk)
ON_BN_CLICKED(IDCANCEL?&AddBooks::OnBnClickedCancel)
ON_EN_CHANGE(IDC_EDIT1?&AddBooks::OnEnChangeEdit1)
END_MESSAGE_MAP()


//?AddBooks?消息處理程序




void?AddBooks::OnBnClickedOk()
{
fstream?books(“Book.dat“ios::out|ios::in|ios::app|ios::binary);
if?(!books)?
{
MessageBox(“無(wú)法打開(kāi)文件!“);
CDialog::OnCancel();
return;
}
books.seekp(ios::beg);
char?n[10];?
int?tnumber=0id=0;
Book?tempb;
GetDlgItemText(IDC_EDIT3LPTSTR(n)9);
id=atoi(n);
while?(!books.eof())
{
books.read((char*)&tempbsizeof(Book));
if?(tempb.getID()==id)?
{
MessageBox(“輸入的編號(hào)重復(fù)!請(qǐng)重新輸入“);
return;
}
}
books.close();
books.open(“Book.dat“ios::out|ios::in|ios::app|ios::binary);
books.seekp(ios::beg);
char?buffer[10];?
GetDlgItemText(IDC_EDIT1LPTSTR(buffer)9);
GetDlgItemText(IDC_EDIT2LPTSTR(n)9);
tnumber=atoi(n);
Book?tempb1(buffertnumberid);
books.seekp(ios::end);
books.write((char*)&tempb1sizeof(Book));
books.close();
MessageBox(“添加成功!“);
CDialog::OnOK();

}


void?AddBooks::OnBnClickedCancel()
{
//?TODO:?在此添加控件通知處理程序代碼
CDialog::OnCancel();
}


void?AddBooks::OnEnChangeEdit1()
{
//?TODO:??如果該控件是?RICHEDIT?控件,它將不
//?發(fā)送此通知,除非重寫(xiě)?CDialog::OnInitDialog()
//?函數(shù)并調(diào)用?CRichEditCtrl().SetEventMask(),
//?同時(shí)將?ENM_CHANGE?標(biāo)志“或”運(yùn)算到掩碼中。

//?TODO:??在此添加控件通知處理程序代碼
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件????????174??2012-06-10?22:45??LibrarySystem2\Book.dat

?????文件??????????4??2012-06-11?20:43??LibrarySystem2\Debug\Book.dat

?????文件????5170176??2012-06-19?17:08??LibrarySystem2\Debug\LibrarySystem.exe

?????文件????2955392??2012-06-19?17:08??LibrarySystem2\Debug\LibrarySystem.ilk

?????文件????6147072??2012-06-19?17:08??LibrarySystem2\Debug\LibrarySystem.pdb

?????文件?????????62??2012-05-28?23:26??LibrarySystem2\Debug\Manager.dat

?????文件???????1080??2012-06-10?22:33??LibrarySystem2\Debug\Reader.dat

?????文件?????????31??2012-05-28?23:26??LibrarySystem2\Debug\temp.dat

?????文件???????2013??2012-05-28?23:26??LibrarySystem2\LibrarySystem\AddBooks.cpp

?????文件????????900??2012-05-30?22:39??LibrarySystem2\LibrarySystem\AddBooks.h

?????文件???????2434??2012-05-31?15:13??LibrarySystem2\LibrarySystem\AddManager.cpp

?????文件????????496??2012-05-28?23:26??LibrarySystem2\LibrarySystem\AddManager.h

?????文件?????855054??2012-05-28?23:26??LibrarySystem2\LibrarySystem\background.bmp

?????文件???????1094??2012-05-28?23:26??LibrarySystem2\LibrarySystem\baseFunction.h

?????文件????????860??2012-05-30?22:39??LibrarySystem2\LibrarySystem\basePeople.cpp

?????文件????????786??2012-05-30?22:39??LibrarySystem2\LibrarySystem\basePeople.h

?????文件???????1325??2012-05-30?22:39??LibrarySystem2\LibrarySystem\Book.cpp

?????文件????????120??2012-06-12?13:45??LibrarySystem2\LibrarySystem\Book.dat

?????文件????????812??2012-05-30?22:39??LibrarySystem2\LibrarySystem\Book.h

?????文件????????966??2012-05-30?22:39??LibrarySystem2\LibrarySystem\BookDate.cpp

?????文件????????814??2012-05-30?22:39??LibrarySystem2\LibrarySystem\BookDate.h

?????文件????????587??2012-05-30?22:39??LibrarySystem2\LibrarySystem\BooksManager.cpp

?????文件????????685??2012-05-30?22:39??LibrarySystem2\LibrarySystem\BooksManager.h

?????文件?????????48??2012-05-28?23:26??LibrarySystem2\LibrarySystem\BorrowBook.cpp

?????文件????????240??2012-05-28?23:26??LibrarySystem2\LibrarySystem\BorrowBook.h

?????文件???????3619??2012-05-28?23:26??LibrarySystem2\LibrarySystem\BorrowBooks.cpp

?????文件????????543??2012-05-28?23:26??LibrarySystem2\LibrarySystem\BorrowBooks.h

?????文件???????2840??2012-05-28?23:26??LibrarySystem2\LibrarySystem\ChangeBooks.cpp

?????文件????????481??2012-05-28?23:26??LibrarySystem2\LibrarySystem\ChangeBooks.h

?????文件???????1719??2012-05-28?23:26??LibrarySystem2\LibrarySystem\ChangeReader.cpp

............此處省略141個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源