Multiple Module Arrays
hello,
I can't figure out how to create an array that can be called from any module. Global or public sounds familiar but they don't work.
Cheers.
1 2 3
|
// foo.h
#define MYARRAY_SIZE 12
extern int myarray[ MYARRAY_SIZE ];
|
1 2 3
|
// foo.cpp
#include "foo.h"
int myarray[ MYARRAY_SIZE ];
|
Hope this helps.
Topic archived. No new replies allowed.