
60
Includes
:
#include “DBMS.h”
Description
:
Use this function can move the search index to appointed record.
The number of first record is 0. The number of second record is 1.
Returns
:
-1: The index move is defeated.
Other value: the present address of searching index
GetRecordNum
Purpose
:
Use this function can read the total amount of records storing in
the file at present. .
Syntax
:
int GetRecordNum(_DBMS* F_Search);
Example call
:
int record_num;
record_num= GetRecordNum(&fsearch);
Includes
:
#include “DBMS.h”
Description
:
GetRecordNum can pass back the amount of record storing in the
file at present.
Returns
:
Amount of record that stores in the file
DeleteRecord
Purpose
:
Use this function can delete the appointed record in the file.
Syntax
:
int DeleteRecord(_DBMS* F_Search,int recordnum);
Example call
:
DeleteRecord(&fsearch,2);//delete the third data of this file
。
Includes
:
#include “DBMS.h”
Description
:
“DeleteRecord” can delete the appointed record, and change the
size of the file.
As success of deleting, file index will stay in the deleting record
front. As deleting defeat, file index will not move.
Returns
:
0: Delete defeat. 1: Delete success.
DeleteLastRecord
Purpose
:
Use this function can delete the last record in the file.
Syntax
:
int DeleteLastRecord(_DBMS* F_Search);
Example call
:
DeleteLastRecord(&fsearch);
Includes
:
#include “DBMS.h”
Description
:
“DeleteLastRecord” can delete the last record in the file, and
change the size of the file.
As success of deleting, file index will stay in deleting record front.
As deleting defeat, file index will not move.
Returns
:
0: Delete defeat. 1: Delete success.
AppendRecord
Purpose
:
Use this function can increase a new record on the file end.
Syntax
:
int AppendRecord(_DBMS* F_Search,char* record);
Содержание PT-10
Страница 4: ...3 Keyboard Wedge 99 System 101 Power 102 Other 102 ...
Страница 13: ...12 6 Development Flow Chart ...
Страница 53: ...52 Returns No returns Notes ...