help with making a dynamic array sized global stuct

This is a discussion on help with making a dynamic array sized global stuct within the C++ Programming forums, part of the General Programming Boards category; How would i made a dynamic array sized global stuct. What i want to do is beable to have a ...

  1. #1
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109

    Question help with making a dynamic array sized global stuct

    How would i made a dynamic array sized global stuct.
    What i want to do is beable to have a stuct like this
    stuct A
    {
    int a,b,c,d;
    }a[5];
    But be able to make it bigger if i need
    so lets say i want t change the size of the stuct array to make it bigger to 10 but i don't see how thats posable and keep it global.
    Any one got an idea?
    int a; don't make a program without it.

  2. #2
    Back after 2 years Panopticon's Avatar
    Join Date
    Dec 2002
    Posts
    262
    But be able to make it bigger if i need
    I dont think you can change an array size at runtime.
    I AM WINNER!!!1!111oneoneomne

  3. #3
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109
    o that not cool
    int a; don't make a program without it.

  4. #4
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109

    Smile

    THANK YOU Thanks a lot man
    I just want to ask you that pic you have shows you think int main is better then void main what do you think that?
    int a; don't make a program without it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dynamic Array Allocation function
    By P4R4N01D in forum C++ Programming
    Replies: 6
    Last Post: 05-15-2009, 02:04 AM
  2. Dynamic array help
    By Perogy in forum C Programming
    Replies: 27
    Last Post: 04-08-2009, 02:25 PM
  3. Replies: 4
    Last Post: 11-02-2006, 10:41 AM
  4. 2D array in dynamic memory
    By VanJay011379 in forum C++ Programming
    Replies: 3
    Last Post: 03-16-2003, 07:34 PM
  5. making an array name a variable
    By Zaarin in forum C++ Programming
    Replies: 5
    Last Post: 09-02-2001, 06:17 AM

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