Re: How include a large array?
> i have this problem: i want to create a large array data that can be portable and so included in multiple files. I thought about an "array.c" file that can be included in test file with an include like this:
> #include "array.c"
> The compiler gives me an error:why?
> I thought about an "array.h" file, but i can't put an instance (in this case the data array) in an header file...or not?
> How can i do?
Both possible approaches you mention should work. Without any idea of
what your array.c file contains, what code you've got around it in the
file that includes it, or what the compiler error is, it's really
impossible to guess what's going wrong.
|All times are GMT. The time now is 12:23 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.