note that the compiler used is TURBO C++
How to include *.c file in a C program?
All the files are included in the same way.
For example you can write it as
#include "file1.h"
#include "file2.c"
#include "file3.c"
.
You can't write " *.c ".....you have to mention all the file names separately in the program !!
Reply:I don't think there is a direct way to do this.
U can create a intermediate header file called allfiles.h which inturn
includes all the necassary C files. Your program can just use the %26lt;allfiles.h%26gt;
The allfiles.h can be generated thru another program(may be a batch file) to avoid manual effort
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment