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

  • 大小: 2.25MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-11-14
  • 語言: C/C++
  • 標簽: vc++??SQL??

資源簡介

要求前臺用VC++設計圖形界面,后臺用數據庫,設計一個航班信息查詢系統。航班信息包括:航班號,始發地,起飛時間,目的地,到達時間,用時,里程數,票價。功能如下: (1) 航班信息的錄入 (2) 航班信息的瀏覽 (3) 航班信息的修改,刪除 (4) 航班信息的查詢(可以按航班號,始發地,目的地查詢)

資源截圖

代碼片段和文件信息

//?adddlg.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“hkxxcx.h“
#include?“adddlg.h“
#include?“dataset.h“

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

/////////////////////////////////////////////////////////////////////////////
//?Cadddlg?dialog


Cadddlg::Cadddlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(Cadddlg::IDD?pParent)
{
//{{AFX_DATA_INIT(Cadddlg)
m_endpa?=?_T(““);
m_startta?=?_T(““);
m_endta?=?_T(““);
m_timea?=?_T(““);
m_distancea?=?_T(““);
m_pricea?=?_T(““);
m_numa?=?_T(““);
m_startpa?=?_T(““);
//}}AFX_DATA_INIT
}


void?Cadddlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Cadddlg)
DDX_Control(pDX?IDC_LIST1?m_list);
DDX_Control(pDX?IDC_BUTTON1?m_sure);
DDX_Text(pDX?IDC_EDIT3?m_endpa);
DDX_Text(pDX?IDC_EDIT4?m_startta);
DDX_Text(pDX?IDC_EDIT5?m_endta);
DDX_Text(pDX?IDC_EDIT6?m_timea);
DDX_Text(pDX?IDC_EDIT7?m_distancea);
DDX_Text(pDX?IDC_EDIT8?m_pricea);
DDX_Text(pDX?IDC_EDIT1?m_numa);
DDX_Text(pDX?IDC_EDIT2?m_startpa);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Cadddlg?CDialog)
//{{AFX_MSG_MAP(Cadddlg)
ON_BN_CLICKED(IDC_BUTTON1?OnButton1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?Cadddlg?message?handlers

void?Cadddlg::OnButton1()?
{
//?TODO:?Add?your?control?notification?handler?code?here
Cdataset?m_set;
UpdateData(true);
if(m_set.IsOpen())
m_set.Close();
m_set.Open();

m_set.AddNew();
m_set.m_num=m_numa;
m_set.m_startp=m_startpa;
m_set.m_endp=m_endpa;
m_set.m_startt=m_startta;
m_set.m_endt=m_endta;
m_set.m_time=m_timea;
m_set.m_distance=m_distancea;
m_set.m_price=m_pricea;
m_set.Update();
AfxMessageBox(“添加成功!“);
if(m_set.IsOpen())
m_set.Close();
m_set.Open();
int?i=0;
m_list.DeleteAllItems();
m_set.MoveFirst();
do
{
CString?s;
s.Format(“%s“m_set.m_num);
m_list.InsertItem(is0);
s.Format(“%s“m_set.m_startp);
m_list.SetItemText(i1s);
s.Format(“%s“m_set.m_endp);
m_list.SetItemText(i2s);
s.Format(“%s“m_set.m_startt);
m_list.SetItemText(i3s);
s.Format(“%s“m_set.m_endt);
m_list.SetItemText(i4s);
s.Format(“%s“m_set.m_time);
m_list.SetItemText(i5s);
s.Format(“%s“m_set.m_distance);
m_list.SetItemText(i6s);
s.Format(“%s“m_set.m_price);
m_list.SetItemText(i7s);
i++;
m_set.MoveNext();
}while(!m_set.IsEOF());
}




BOOL?Cadddlg::OnInitDialog()?
{
CDialog::OnInitDialog();

//?TODO:?Add?extra?initialization?here
m_list.Modifystyle(0LVS_REPORT);
m_list.InsertColumn(0“航班號“LVCFMT_CENTER70NULL);
m_list.InsertColumn(1“始發地“LVCFMT_CENTER70NULL);
m_list.InsertColumn(2“目的地“LVCFMT_CENTER70NULL);
m_list.InsertColumn(3“出發時間“LVCFMT_CENTER90NULL);
m_list.InsertColumn(4“到達時間“LVCFMT_CENTER90NULL);
m_list.InsertColumn(5“用時(分

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????393216??2014-06-18?11:22??信息1101劉升法0121109300107\lsf課設終極版\新建?Microsoft?Access?2007.accdb

?????文件??????16355??2014-06-18?12:32??信息1101劉升法0121109300107\lsf課設終極版\目錄.docx

?????文件???????4033??2014-06-16?17:53??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\adddlg.cpp

?????文件???????1362??2014-06-16?17:53??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\adddlg.h

?????文件???????5371??2013-06-21?10:47??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\chaxunDlg.cpp

?????文件???????1442??2013-06-19?14:46??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\chaxunDlg.h

?????文件???????1593??2014-06-16?22:57??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\dataset.cpp

?????文件???????1396??2013-06-20?17:00??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\dataset.h

?????文件???????1050??2013-06-19?23:06??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\ddset.cpp

?????文件???????1222??2013-06-19?23:13??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\ddset.h

?????文件??????29691??2014-06-16?20:19??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\adddlg.obj

?????文件??????????0??2014-06-16?20:19??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\adddlg.sbr

?????文件??????29994??2014-06-16?20:19??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\chaxunDlg.obj

?????文件??????????0??2014-06-16?20:19??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\chaxunDlg.sbr

?????文件??????18989??2014-06-16?22:57??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\dataset.obj

?????文件??????????0??2014-06-16?20:19??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\dataset.sbr

?????文件??????11209??2013-06-19?23:13??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\ddset.obj

?????文件??????18514??2013-06-21?13:00??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\dengluDlg.obj

?????文件??????26042??2013-06-21?11:53??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\guanliDlg.obj

?????文件???????1247??2013-06-21?14:27??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcx?-?快捷方式.lnk

?????文件??????25600??2014-06-16?20:19??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcx.bsc

?????文件?????139371??2014-06-17?01:39??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcx.exe

?????文件?????291628??2014-06-17?01:39??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcx.ilk

?????文件??????14058??2014-06-16?20:19??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcx.obj

?????文件????5493960??2013-06-18?15:23??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcx.pch

?????文件?????500736??2014-06-17?01:39??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcx.pdb

?????文件???????4976??2014-06-17?01:39??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcx.res

?????文件??????????0??2014-06-16?20:19??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcx.sbr

?????文件??????50619??2014-06-16?20:19??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcxDlg.obj

?????文件??????????0??2014-06-16?20:19??信息1101劉升法0121109300107\lsf課設終極版\航班系統\VC++文件\Debug\hkxxcxDlg.sbr

............此處省略61個文件信息

評論

共有 條評論