Q:

Without Header file how to call a function in other module using c++?

I have a requirement without using header file how to create function prototype and how to use in other modules can you please explain how to do that.
Thanks in Advance.
Gunasekaran J

A:

Maybe you are looking for an extern function?
It is more like C, not C++.
define a function in demo1.cpp:
void printXX(){ cout << "call me !"; }

And then in demo2.cpp:
extern void printXX();

