![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on C++ Help within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Can you have Multi-dimensional Arrays within a structure? It's for my brother i have tried looking it up and i ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() Party at Las Noches!
|
Can you have Multi-dimensional Arrays within a structure? It's for my brother i have tried looking it up and i can't find anything on it... I can get the source code if you like...
Thank you
__________________
|
|
|
|
|
|
#2 |
![]() |
|
|
|
|
|
|
#3 |
![]() ![]() Party at Las Noches!
|
ok.... Could someone really help he needs this done for a friend this weekend....
__________________
|
|
|
|
|
|
#4 |
|
You can have multi-dimensional arrays in a struct, but you need to give the compiler some info about the dimensions. In a 2D array, the second dimension needs to be given (in order to determine how much further to look in memory when a subscript for the first dimension is given).
For example: Code:
typedef struct someStupidStruct
{
|
|
|
|
|
|
|
#5 |
![]() ![]() Party at Las Noches!
|
Thanks nice seeing new people on the boards that know what they are talking about
__________________
|
|
|
|
![]() |
| Thread Tools | |
|
|