資源簡介
校園車輛管理與服務系統(tǒng),數(shù)據(jù)結構課程設計,比較簡單~~
代碼片段和文件信息
//?chaxunyuxiugai.cpp?:?實現(xiàn)文件
//
#include?“stdafx.h“
#include?“車輛管理與服務系統(tǒng)三.h“
#include?“chaxunyuxiugai.h“
#include?“afxdialogex.h“
#include“fstream“
#include“find.h“
#include“afxver_.h“
#include
#include?
using?namespace?std;
//using?namespace?std;
/*void?Search(char?*IDchar*Filename)
{
char?ch[20];
bool?judge=false;
ifstream?in(Filename);
while(in.getline(ch200))
{
if(strstr(chID)!=NULL)
{
judge=true;
}
}
if(!judge)
MessageBox(“未找到該關鍵字信息“);
}*/
//?chaxunyuxiugai?對話框
IMPLEMENT_DYNAMIC(chaxunyuxiugai?CDialog)
chaxunyuxiugai::chaxunyuxiugai(CWnd*?pParent?/*=NULL*/)
:?CDialog(chaxunyuxiugai::IDD?pParent)
?m_cb3(_T(““))
{
}
chaxunyuxiugai::~chaxunyuxiugai()
{
}
void?chaxunyuxiugai::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//??DDX_Control(pDX?IDC_COMBO1?m_cb);
DDX_Text(pDX?IDC_EDIT2?m_cb3);
// DDX_Control(pDX?IDC_LIST1?m_list1);
//DDX_Control(pDX?IDC_EDIT3?m_edit);
// DDX_Control(pDX?IDC_LIST5?m_list);
DDX_Control(pDX?IDC_EDIT1?m_edit1);
}
?/*BOOL?chaxunyuxiugai::OnInitDialog()
{
CDialog::OnInitDialog();
m_list.InsertColumn(0“車牌號碼“LVCFMT_LEFT40);
m_list.InsertColumn(1“車主“LVCFMT_LEFT50);
m_list.InsertColumn(1“所屬學院代碼“LVCFMT_LEFT60);
m_list.InsertColumn(1“所屬學院“LVCFMT_LEFT70);
for(int?j=0;j<4;j++)
m_list.SetColumnWidth(j140);
return?true;
}*/
BEGIN_MESSAGE_MAP(chaxunyuxiugai?CDialog)
ON_CBN_SELCHANGE(IDC_COMBO1?&chaxunyuxiugai::OnCbnSelchangeCombo1)
ON_BN_CLICKED(IDC_BUTTON1?&chaxunyuxiugai::OnBnClickedButton1)
//ON_NOTIFY(LVN_ITEMCHANGED?IDC_LIST5?&chaxunyuxiugai::OnLvnItemchangedList5)
ON_EN_CHANGE(IDC_EDIT1?&chaxunyuxiugai::OnEnChangeEdit1)
ON_BN_CLICKED(IDC_BUTTON2?&chaxunyuxiugai::OnBnClickedButton2)
ON_EN_CHANGE(IDC_EDIT2?&chaxunyuxiugai::OnEnChangeEdit2)
END_MESSAGE_MAP()
//?chaxunyuxiugai?消息處理程序
void?chaxunyuxiugai::OnCbnSelchangeCombo1()
{
}
void?chaxunyuxiugai::OnBnClickedButton1()
{
//FILE?*pFile=fopen(“車輛信息.txt““r“);
//char?ch;
//int?num=0;
//while(ch=getc(pFile)!=EOF)
//{
// num++;
//}
//fclose(pFile);
//ifstream?fin;
//fin.open(“車輛信息.txt“ios::in);
//CString?str;
//char?cstr[50];
//for(int?i=0;i<1000)
//fin>>cstr;
//str=cstr;
//CFile?file(“車輛信息.txt“CFile::modeRead);
//TStringList*p=new?TStringList();
????//char?*Temp;
//Temp=(char*)malloc(strCBText.GetLength()+1);
//strcpy(TempstrCBText.GetBuffer(0));
//free(Temp);
//CString?strEdit;
//m_cb3.GetWindowText(strEdit);
char?ch[200];
bool?judge=false;
bool?judge2=false;???
UpdateData(true);
ifstream?in;
in.open(“車輛信息.txt“);
CFileDialog;
for(int?r=0;r<100;r++)
{
in.getline(ch200);
????????char*?pszFileName=“車輛信息1.txt“;
????????CStdioFile?myFile;
????????CFileException?fileException;
if(myFile.Open(?pszFileNameCFile::typeText|CFile::modeCreate|CFile::modeReadWrite|CFile::m
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1528832??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\Debug\車輛管理與服務系統(tǒng)三.exe
?????文件????1903488??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\Debug\車輛管理與服務系統(tǒng)三.ilk
?????文件????6007808??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\Debug\車輛管理與服務系統(tǒng)三.pdb
?????文件???????5944??2014-01-08?15:49??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\chaxunyuxiugai.cpp
?????文件????????865??2014-01-06?15:17??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\chaxunyuxiugai.h
?????文件????????941??2013-12-28?16:20??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\cheliangguanli.cpp
?????文件????????464??2013-12-22?15:47??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\cheliangguanli.h
?????文件???????6961??2014-01-09?22:09??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\daohang.cpp
?????文件????????700??2014-01-09?21:14??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\daohang.h
?????文件???????3715??2014-01-09?18:35??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\AdjMatrix.obj
?????文件?????232428??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\chaxunyuxiugai.obj
?????文件??????28131??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\cheliangguanli.obj
?????文件??????33422??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\cl.command.1.tlog
?????文件?????270516??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\CL.read.1.tlog
?????文件??????45262??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\CL.write.1.tlog
?????文件??????36990??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\daohang.obj
?????文件??????30902??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\DlgProxy.obj
?????文件??????37663??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\find.obj
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
?????文件??????????2??2014-01-11?18:25??車輛管理與服務系統(tǒng)三\車輛管理與服務系統(tǒng)三\Debug\li
............此處省略132個文件信息
評論
共有 條評論