Raised This Month: $ Target: $400
 0% 

Help with multi-dimensional arrays


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Blackhawk
Member
Join Date: Apr 2005
Old 08-24-2005 , 14:06   Help with multi-dimensional arrays
Reply With Quote #1

If i have got an array, let's say with two dimensions, something like
Code:
Testarray[5][5]
and i would like to clear out one dimension completely, i could say something like
Code:
Testarray[3] = {0,0,0,0,0}

My question is: is there a better way, so i don't have to give every single value of this dimension? I read about something i could say
Code:
Testarray[3] = {0, ...}
but it seems no to work as expectet. Someone my have a better idea?
__________________
Outpost 104 - last hope for teamplay
Blackhawk is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode