Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: How include a large array?

Thread Tools

Re: How include a large array?

Siri Cruise
Posts: n/a
In article <(E-Mail Removed)>, Removed) wrote:

> Hi,
> 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 preprocessor doesn't (or shouldn't) care what the file names are. I have a
mild headache at the moment, so I can't really read your mind to see what your
compiler is complaining about. Maybe I'll try again later.

You aren't wearing a foil beret, are you? That always interferes with reception.
Daddy says Syracuse is where Archimedes is from. Why does he
call himself Plutonium?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
/* #include <someyhing.h> */ => include it or do not include it?That is the question .... Andreas Bogenberger C Programming 3 02-22-2008 10:53 AM
Re: the use of #include <a_file.h> v/s #include"a_file.cpp" Elie Nader C++ 1 11-28-2003 03:12 PM
Re: the use of #include <a_file.h> v/s #include"a_file.cpp" Rolf Magnus C++ 2 11-28-2003 12:26 PM
#include "bar" negates #include <string> ; how to fix? Danny Anderson C++ 5 08-15-2003 06:38 PM