Dear c++ guru:
In c++, normally we will call a function as shown below:
int funct ()
{
...;
}
void main()
{
funct();
}
main will call the function "funct()" which is defined within the same file.
However, in my case, i wish to have the "funct()" on the other file while the "main()" is in a file as shown below:
filename: File1.C
void main()
{
funct(); //funct() from File2.C
}
filename: File2.C
int funct()
{
...;
}
Is that possible? How can I achieve that?
Thanks,
Best regards,
Mei Ying