Thank you for your comments, however as part of the project the main.c has got to include the header file, header.h, and the source file (source2.c) this is the way I have to do it. This may seem like the wrong way of doing it but that is the way it mist be done, so source files must stay as .c...
Sorry I dont understand, what does inline functions in header file mean?
All the functions I have, all function prototypes have been decalred in header file, work in separate source files. when I try and use multiple files it returns the multiple declaration error (relating to the struct)...
The project I am working on requires that we include source2.c inside source1.c using #include "source2.c".
source1.c uses functions defined in source2.c.
Encountered another problem I have two source files for e.g. source1.c source2.c and the header including the struct declaration as set out in original post header.h.
Both source1.c and source2.c need to be linked and use the struct.
Source2.c will compile and execute fine on its own using the...
I have declared a struct (see below) in a header file to be used in two source files, however when I compile I get a multiple declaration error even though it only declared once can anyone explain this error??
//this is the struct declared in the header
struct student_data
{
int...
Is it acceptable when creating an entity relationship diagram to have two separate relationships from say entity A to entity B?
(Going from A to B and from different attributes in A but to the same attribute in B)
Thank's for all the help has made things alot clearer and has made me realise that there always a number of different solutions or approaches to a problem.
Thanks again.
Hi could anyone clarify this for me??
I am working on a d base project for uni, i not asking for a solution just an insight into proper d base design etc, the d base has the following entities
Flight(flight_Reg(pk), date, time, destination airport, arrival airport, stopover airport)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.