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
    Location
    Waterloo, Texas
    Posts
    5,708
    However you'd like

    Better get to coding...
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 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, 04:24 PM
  2. Pointers and multi dimensional arrays
    By andrea72 in forum C++ Programming
    Replies: 5
    Last Post: 01-23-2007, 04:49 PM
  3. Passing pointers to arrays of char arrays
    By bobthebullet990 in forum C Programming
    Replies: 5
    Last Post: 03-31-2006, 05:31 AM
  4. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  5. Help understanding arrays and pointers
    By James00 in forum C Programming
    Replies: 2
    Last Post: 05-27-2003, 02:41 AM

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