TDataStr.h
Record structure for list class
|
#ifndef _TDataStruct_H_
#define _TDataStruct_H_
// INCLUDES
// #include<system.hpp>
// BCB
|
|
/* make sure the record structure is byte aligned */
#if defined(_MSC_VER) || defined(_QC) || defined(__WATCOMC__)
#pragma pack(1)
#elif defined(__ZTC__)
#pragma ZTC align 1
#elif defined(__TURBOC__) && (__TURBOC__ > 0x202)
#pragma option -a-
#endif
// NAME: TDataStruct.H
// TYPE: C++ STRUCT
// SYNOPSIS:
// DESCRIPTION: data structure for ProjEx01
// EXAMPLES:
// BUGS:
// SEE ALSO: list.h node.h
////////////////////////////////////////////
|
|
struct TDataStruct
{
/* Company details */
int custNo;
char companyName[30];
char companyAddress1[30];
char companyAddress2[30];
char companyAddressPost[7];
/* Contact 1 */
char contact1[30];
char contact1Address1[30];
char contact1Address2[30];
char contact1AddressPost[7];
char contact1TelNo[20];
char dateLastContacted1[9];
char nextDateToContact1[9];
/* Contact 2 */
char contact2[30];
char contact2Address1[30];
char contact2Address2[30];
char contact2AddressPost[7];
char contact2TelNo[20];
char dateLastContacted2[9];
char nextDateToContact2[9];
};
#endif // _TDataStruct_H_
|
|
Note:
|
|
|
|
|