Download presentation
Presentation is loading. Please wait.
Published byEugenia McCormick Modified over 9 years ago
1
Programming Language: C++ Part Main topic 1.What Library and tool do we choose to implement C++ & GUI? 2.The progress of our implement data file and System Design. 3.Detail implement of our algorithm. 4.Show the program which we finished. 5.The Problem we solve and can not solved.
2
Programming Language: C++ Version: 2nd Version. Type of User-Interface: GUI – Mode. ( Windows base) Operating System : Microsoft Windows Compiling software: Microsoft Visual C++ 6.0 Related Class: 1.CHerbsSystemApp 2.CHerbsSystemDlg 3.CAboutDlg 4.CAllPatientTab 5.CPatientDetailTab 6.CCaseHistoryTab 7.CAllMedicineTab 8.CAllNutritionTab 9.CMedicineDetailTab 10.CNutritionDetailTab 11.CUseMedicineTab 12.CHSRecordSetP 13.CHSRecordSetM 14.CHSRecordSetN Related Data Files: Microsoft Access Database file: HerbsSystem.mdb
3
1. What Library and tool do we choose to implement C++ & GUI? 1. C+++Win API (SDK)2. C+++MFC (VC6)3. C+++.net4. C+++C++ Builder too hard too newfewer online resource SP6 More online resource
4
STL? 2. The progress of our implement data file and. Three Attempt 2. The progress of our implement data file and System Design. Three Attempt Pure C++ (text file) MFC (GUI) + MFC (text file) MFC (GUI) + MFC (ODBC) Microsoft Access file MFC (GUI) + Many errors Difficult to manage large data Microsoft VC6 does not support well OK
5
System Design by C++ First Attempt Difficult of MFC(GUI) plus Pure C++ System Design by C++ First Attempt: Difficult of MFC(GUI) plus Pure C++ Pure C++ (text file) MFC (GUI) + Just use text mode? + 1. Have include header file error. 2. Many cin, cout need to clear. 3. The interface of the class hard to call.
6
System Design by C++ Second Attempt System Design by C++ Second Attempt : Header file MFC (text file) MFC (GUI) + Difficult to manage many data (Patient, Medicine and nutrition )
7
System Design by C++ Second Attempt System Design by C++ Second Attempt : data file PatientRecord.dat [GeneralInfo] PatientCount=3 Patient1=ID:2 Patient2=ID:3 Patient3=ID:4 MFC (text file) MFC (GUI) + [ID:4] ID=4 ChineseName= 病人甲 EnglishName=Patient4 Sex=Male BornDay=2000/1/1 Contact=123456 LastVisited=2004/1/1 [ID:3] ID=3 ChineseName= 病人丙 EnglishName=Patient3 Sex=Female BornDay=1982/1/1 Contact=6693456 LastVisited=2004/3/10 [ID:2] ID=2 ChineseName= 病人乙 EnglishName=Patient2 Sex=Male BornDay=1998/1/1 Contact=193456 LastVisited=2002/1/10
8
System Design by C++ Third Attempt System Design by C++ Third Attempt : MFC (ODBC) Microsoft Access file MFC (GUI) + HerbsSystem ODBC Microsoft Access File (MDB) Patient Record Table Medicine Record Table Nutrition Record Table Addition Table
9
3. Detail implement of our Algorithm. ODBC Microsoft Access File (MDB) Patient Record Table Medicine Record Table Nutrition Record Table Addition Table Use Database do not need Algorithm? CHSRecordSetPCHSRecordSetMCHSRecordSetNAddition CRecordSet RecordSet Pointer 1.We do not use SQL!! 2.We use linear search!! 3.Del, Modify also base on linear search Special Thank you!! Peter suggest many good idea of the algorithm part Field Pointer
10
4. Show the program which we finished
11
4. Show the program which we finished Welcome Interface
12
4. Show the program which we finished Main Program Show Patient’s Search, Delete, Create, Modify
13
4. Show the program which we finished Show Medicine and Particular medicine
14
4. Show the program which we finished Show Nutrition and Particular Nutrition
15
5. The Problem we solve and can not solved. Problem we solve: 1.Database(text file, DBMS(microsoft access) 2.How to use MFC? a. Study well the C++ first !! b. Where is the main()? c. How to add a C++ file to MFC? ……………………………
16
1.The Topic too big to finish in this project 2.Sscanf (How to convert a string to int using c++ not use c function?) CString strID, int i; strID.Format("%d",i); int iID; sscanf(m_id,"%d",&iID); 5. The Problem we solve and can not solved.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.