![]() |
Program With C++ style
Quote:
With warm Regards sdmahapatra |
Re: Program With C++ style
The point of header files is to share definitions between multiple source files. So if you only have one source file there's no point in having a header file.
|
Re: Program With C++ style
Thanks for your suggestion, So xpi0t0s, If I don't have one source file then how to do this? header files,class,member functions(for process) and main(for application) should be in separate window and I want to execute the program properly.
Thanks |
Re: Program With C++ style
It doesn't necessarily follow that stuff that has to be in different windows has to be in different source files. Form design and software design are linked but do not necessarily have to follow each other. Anyway here is an example of a header file included by two source files (not tested):
inc.h: Code:
#define FOO 27Code:
#include <stdio.h>Code:
#include <stdio.h>and this will compile main.c and gronk.c to produce main.o and gronk.o, then link them together. Output should be something like: in bar(), returning 27 FOO=27; bar()=27 |
Re: Program With C++ style
Hi xpi0t0s, yes I'll try it and if it'll going well then using this way I'll try to go more depth and then I let you know. thanks xpi0t0s for your concern about this problem.I think it will enough for me.thanks
|
| All times are GMT +5.5. The time now is 23:48. |