Thread: quickie question

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    27

    quickie question

    how to you store integers in structured array?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Code:
    #define N some_arbitrary_number
    
    int array[N];
    
    array[i] = value; /* Store */
    value = array[i]; /* Retrieve */
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  2. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  3. quickie pointer question
    By 1337speaker in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2003, 05:55 PM
  4. Question about linked lists.
    By cheeisme123 in forum C++ Programming
    Replies: 6
    Last Post: 02-25-2003, 01:36 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM