Array of specific indices

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

Is there a way to create an array that has only specific indices e.g
arr[12], arr[127] etc.etc.?

Thanks

Regards
 
* "John said:
Is there a way to create an array that has only specific indices e.g
arr[12], arr[127] etc.etc.?

Use a 'Hashtable' with the number as key.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top