array question

I would like to create a simple array. I would like to read analogue over 1000 times and upon each read I would like to store the value maybe in the form of I(array address) = 0 and then the first value would be placed in I(arrayaddress).

Maybe something like
int I = 0;
int a = 0;
int(I) = 0;
void setup()
int(I) = 1
int(I = 2
int(I) =3

I, could be updated by I = I ++

int a = int(I) where I is for example; 2 which would be the second byte of the I array. How do I do this in Arduino language?

Same as in C++.

There are a lot of tutorials about C++ arrays.

Putting 1000 ints in an array is going to require 2000 bytes of storage. Which Arduino board are you planning on using and how much memory does it have ?

atmega 2560. Good idea about the learning and referring to c. I already know 5 machine code languages and this Arduino is as far as Im going. lol

There's an entry for "array" in the reference that can be accessed from the "help" tab of the IDE.

Yes there is an example but not one of a basic array of 1 level. I just want to use one int but in the format (example(I)) where I can be any number from 0 to 1000.

int array [1001]; seems to cover the requirements

stx38834:
In my opinion this is the most confusing language I have ever encountered and Ive learned a lot of micro's including the first sixteen bit processor. At least if I go back to machine code I wont have to annoy you guys and create arguments.

How about:

const int READING_COUNT = 500;
int readings [READING_COUNT];

void setup ()
  {
  // take the readings, put into an array
  for (int i = 0; i < READING_COUNT; i++)
    readings [i] = analogRead (A0);
  }  // end of setup

void loop () { }

What's confusing about it? I bet the machine code would look a lot, lot worse.

For one thing, you would then need to replicate how analogRead works, and for outputting write your own serial send/receive routines, and so on.

Look, I used to program in assembler. I learned C then C++. You can do that too.

tnx nick. Ill try this method you suggested. As for c and c++ , Im 62 lol but Ill try. My brain is more affixed to hardware since its been so long since I did any programming. I design my own hardware projects and am having a ball using smd's and designing my own boards.

stx38834:
Yes there is an example but not one of a basic array of 1 level. I just want to use one int but in the format (example(I)) where I can be any number from 0 to 1000.

well, their example is:

To assign a value to an array:

mySensVals[0] = 10;

To retrieve a value from an array:

x = mySensVals[4];

That is a basic array of one level.

stx38834:
tnx nick. Ill try this method you suggested. As for c and c++ , Im 62 lol but Ill try. My brain is more affixed to hardware since its been so long since I did any programming. I design my own hardware projects and am having a ball using smd's and designing my own boards.

C was designed to be "close to the hardware". There is no other language that does it as well.

The brains of compiler-writers are also "affixed to hardware". They have cunning ways of doing things from long experience with the raw hardware. For example, they might subtract -1 from a variable instead of adding 1 because it is faster. They might XOR a variable with itself rather than loading zero and storing it, because it is faster. The compiler keeps track of variables and what registers they are in, to save going back to RAM, where it can.