Pointers and Arrays

This is a discussion on Pointers and Arrays within the C Programming forums, part of the General Programming Boards category; hello, I need some help... I have some data that is pre-determined, they are 7 different processes, and each process ...

  1. #1
    C Seņor
    Guest

    Question Pointers and Arrays

    hello, I need some help... I have some data that is pre-determined, they are 7 different processes, and each process has little "jobs" that are an integers of time.

    So I loaded all of the data into 7 arrays of structs. Now I need to dynamically put a single element from each array into a list, perform operations on those in the list until it is empty, and then get a new list from those 7 arrays... How can I do this?

    I was thinking using a linked list, but my data is predetermined. I do however need to dynamically move through those 7 arrays of structs to get the info I need.

    Thanks for any help!

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    >I was thinking using a linked list, but my data is predetermined.

    so? why should that make a difference?

    a linked list still would be easiest way.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    C Seņor
    Guest
    Ok, but how can I implement this?

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Posts
    5,439
    However you'd like

    Better get to coding...
    Code:
    int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000
    <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan
    (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000
    )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 0;}

  5. #5
    C Seņor
    Guest
    Thanks for your help.

    Can anyone else point me in the right direction?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pointers & arrays and realloc!
    By zesty in forum C Programming
    Replies: 14
    Last Post: 01-19-2008, 03:24 PM
  2. Pointers and multi dimensional arrays
    By andrea72 in forum C++ Programming
    Replies: 5
    Last Post: 01-23-2007, 03:49 PM
  3. Passing pointers to arrays of char arrays
    By bobthebullet990 in forum C Programming
    Replies: 5
    Last Post: 03-31-2006, 04:31 AM
  4. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 08:32 AM
  5. Help understanding arrays and pointers
    By James00 in forum C Programming
    Replies: 2
    Last Post: 05-27-2003, 01:41 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21