Hi, I'm trying to use extern for the first time, and it's not working. Here's the code:
test1.cpp:
------------------------------------
#include "test2.cpp"
int main(void)
{
hi();
return 0;
}
------------------------------------
and test2.cpp
------------------------------------
#include<iostream.h>
extern void hi(void)
{
cout << "hi" << endl;
}
------------------------------------
Thanks!