By two files: main.cpp, fun.cpp Test the cross-document of the Const type pointer
// main.cpp
#include
Char * const str = new char [100];
Void fun ();
void main ()
{
STRCPY (STR, "Hello");
Fun ();
}
// fun.cpp
#include
EXTERN CHAR * CONST STR;
Void fun ()
{
COUT << str << endl;
}
As a result, fun.obj can't find STR when connecting, is this?