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

  • 大小: 1.93MB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發布日期: 2024-01-28
  • 語言: C/C++
  • 標簽: MFC??C++??系統管理??

資源簡介

我的C++綜合性實驗編寫的MFC程序,代碼全部由自己編寫,可以再VC6.00上運行。 有以下功能 (1)車輛的出入控制功能; (2)計費、收費功能; (3)車輛識別功能; (4)泊車引導功能;

資源截圖

代碼片段和文件信息

//?DlgCharge.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“Parkmanage.h“
#include?“DlgCharge.h“
#include?“ParkmanageDlg.h“
#include“DlgReceipt.h“

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

/////////////////////////////////////////////////////////////////////////////
//?CDlgCharge?dialog
extern?station?car;
extern?g_restcarnumg_usedcarnum;
CDlgCharge::CDlgCharge(CWnd*?pParent?/*=NULL*/)
:?CDialog(CDlgCharge::IDD?pParent)
{
//{{AFX_DATA_INIT(CDlgCharge)
//?NOTE:?the?ClassWizard?will?add?member?initialization?here
//}}AFX_DATA_INIT
}


void?CDlgCharge::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgCharge)
DDX_Control(pDX?IDC_EDIT4_CARID?m_EDIT4CARID);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgCharge?CDialog)
//{{AFX_MSG_MAP(CDlgCharge)
ON_BN_CLICKED(IDC_BUTTON_CAROUT?OnButtonCarout)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CDlgCharge?message?handlers

void?CDlgCharge::OnButtonCarout()?
{
//?TODO:?Add?your?control?notification?handler?code?here

int?flag=0flag1=0flag2=0flag3=0; //標志位
CString?content;
m_EDIT4CARID.GetWindowText(content); //取得文本框中的文字
for(int?i=0;i if((content.GetAt(i)>=‘0‘&&content.GetAt(i)<=‘9‘)||
(content.GetAt(i)>=‘a‘&&content.GetAt(i)<=‘z‘)||
(content.GetAt(i)>=‘A‘&&content.GetAt(i)<=‘Z‘)
);
else
{
flag=1;
}
//*****************判斷是否車牌號是否已經出庫*********************/
int?m;
CString?coma;
for(m=0;m {
coma.Format(?_T(“%s“)?car.g_number[m]);
if(coma.Compare(content)==0)
flag3=1;
}
//**********判斷輸入的車牌號是否存在沒出庫的車牌中******************/
int?j;
for(j=0;j {
coma.Format(?_T(“%s“)?car.temp[j]); //char轉換成CString
if(coma.Compare(content)==0)
{
flag2=1;
car.i=j;
}
}
if(content.GetLength()==0)
flag1=1;
if(flag==1||flag1==1)
MessageBox(“車牌有誤,請重新輸入““警告“);
if(flag2==0)
MessageBox(“沒有輸入的號碼““警告“);
if(flag3==1)
MessageBox(“該車已經出庫““警告“);

if(flag==0&&flag1==0&&flag2==1&&flag3==0)
{
coma.Format(?_T(“%s“)?car.temp[car.i]);
car.g_number[car.k]=coma;
car.k++;

EndDialog(IDD_INFORMATION_INPUT); //關閉此對話框
g_restcarnum++; //全局變量,顯示在“剩余車位”
g_usedcarnum--; //全局變量,顯示在“已用車位”
CTime?t=CTime::GetCurrentTime();
car.endtime[car.i]=t.Format(?“%Y-%m-%d?%H:%M:%S?“);?//car.endtime[]用來顯示離開車庫時間
CString?time_s=t.Format(“%S“); //time_s獲取秒的數值
CString?time_m=t.Format(“%M“);
CString?time_h=t.Format(“%H“);?
car.out_time_s[car.i]=atof((LPTSTR)(LPCTSTR)time_s);//將獲得的time_s轉換成double變量,用于計算
car.out_time_m[car.i]=atof((LPTSTR)(LPCTSTR)time_m);
car.out_time_h[car.i]=atof((LPTSTR)(LPCTSTR)time_h);

if((car.out_time_s[car.i]-car.in_time_s[car.i])>=0)
{
car.g_money[c

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

?????文件?????????44??2012-06-11?18:28??智能停車場管理系統\count.h

?????文件?????????99??2012-06-13?16:42??智能停車場管理系統\data.txt

?????文件?????????42??2012-06-12?15:11??智能停車場管理系統\data.xls

?????文件??????21868??2012-06-14?00:48??智能停車場管理系統\Debug\DlgCharge.obj

?????文件??????19398??2012-06-14?00:48??智能停車場管理系統\Debug\DlgInformation.obj

?????文件??????16884??2012-06-14?00:48??智能停車場管理系統\Debug\dlgInit.obj

?????文件??????28084??2012-06-13?16:34??智能停車場管理系統\Debug\DlgManage.obj

?????文件??????18848??2012-06-12?16:10??智能停車場管理系統\Debug\DlgReceipt.obj

?????文件??????13339??2012-06-13?14:34??智能停車場管理系統\Debug\FileSample.obj

?????文件??????26949??2012-06-13?16:42??智能停車場管理系統\Debug\history.obj

?????文件?????131153??2012-06-14?00:48??智能停車場管理系統\Debug\Parkmanage.exe

?????文件?????277168??2012-06-14?00:48??智能停車場管理系統\Debug\Parkmanage.ilk

?????文件??????12796??2012-06-08?15:35??智能停車場管理系統\Debug\Parkmanage.obj

?????文件????5499520??2012-06-08?15:20??智能停車場管理系統\Debug\Parkmanage.pch

?????文件?????459776??2012-06-14?00:48??智能停車場管理系統\Debug\Parkmanage.pdb

?????文件???????5080??2012-06-13?17:19??智能停車場管理系統\Debug\Parkmanage.res

?????文件??????35754??2012-06-14?00:48??智能停車場管理系統\Debug\ParkmanageDlg.obj

?????文件?????105301??2012-06-08?15:20??智能停車場管理系統\Debug\StdAfx.obj

?????文件?????279552??2012-06-14?00:48??智能停車場管理系統\Debug\vc60.idb

?????文件?????389120??2012-06-14?00:48??智能停車場管理系統\Debug\vc60.pdb

?????文件???????3679??2012-06-14?00:48??智能停車場管理系統\DlgCharge.cpp

?????文件???????1196??2012-06-11?16:53??智能停車場管理系統\DlgCharge.h

?????文件???????3009??2012-06-14?00:48??智能停車場管理系統\DlgInformation.cpp

?????文件???????1271??2012-06-11?15:01??智能停車場管理系統\DlgInformation.h

?????文件???????2252??2012-06-14?00:48??智能停車場管理系統\dlgInit.cpp

????I.A....??????1271??2012-06-13?16:04??智能停車場管理系統\dlgInit.h

?????文件???????3085??2012-06-13?15:18??智能停車場管理系統\DlgManage.cpp

?????文件???????1469??2012-06-13?14:33??智能停車場管理系統\DlgManage.h

?????文件???????2426??2012-06-12?16:10??智能停車場管理系統\DlgReceipt.cpp

?????文件???????1335??2012-06-12?12:30??智能停車場管理系統\DlgReceipt.h

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

評論

共有 條評論