Okay...
SET1:
Code:
file: def.h
#define FILE_NAME "file.db"
#define INDEX_FILE "file.dx"
struct PINFO{
char string[33];
int number;
}
typedef struct PINFO RECORD;
file: function.h
int fun_a(RECORD *db)
{
}
RECORD * fun_b()
{
}
file: fun_pinfo.h
int writerecord(char *fname)
{
}
int readrecord(char *fname)
{
}
int displayrecord(RECORD *db)
{
}
SET2:
Code:
file: def2.h
#define FILE_NAME "file2.db"
#define INDEX_FILE "file2.dx"
struct DEMO{
int number;
int status;
char name[33];
}
typedef struct DEMO RECORD;
file: function2.h
int fun_a(RECORD *db)
{
}
RECORD * fun_b()
{
}
file: fun_demo
int writerecord(char *fname)
{
}
int readrecord(char *fname)
{
}
int displayrecord(RECORD *db)
{
}
Now how can I use this code?
It works separately with few modifications in func_*h, def*.h only.
Except system("");
How can I use this two set in the same application.