It would be
extern int arrayname[9];

Also, putting "using namespace std" in a header file is very poor style.