![]() |
| | #1 |
| Registered User Join Date: Jan 2010
Posts: 4
| Pointer to a class array? Code: MyClass *Human[10][10]; one interesting thing is that i'm able to do that: Code: for (unsigned int uiRow = 0; uiRow < 10; ++uiRow) {
for (unsigned int uiCol = 0; uiCol < 10; ++uiCol) {
Human[uiRow][uiCol] = 0;
}
}
Code: int *numbers[10][10];
for(int i=0;i<10;i++){
for(int j=0;j<10;j++){
numbers[i][j] = i*j;
}
}
Any help? |
| Peacelyk is offline | |
| | #2 | |
| The larch Join Date: May 2006
Posts: 3,333
| It is an array of pointers. You can set a pointer to 0 (NULL).
__________________ I might be wrong. Quote:
| |
| anon is offline | |
| | #3 |
| Registered User Join Date: Jan 2010
Posts: 4
| Ok, but what's this then: Code: int main(int argc, char *argv[]) And yet we are able to get out of it main function arguments. I thought that Code: char *argv[] |
| Peacelyk is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| weird static char pointer array | Anator | C Programming | 4 | 11-16-2009 07:05 AM |
| deriving classes | l2u | C++ Programming | 12 | 01-15-2007 05:01 PM |
| Class Template Trouble | pliang | C++ Programming | 4 | 04-21-2005 04:15 AM |
| pointers | InvariantLoop | C Programming | 13 | 02-04-2005 09:32 AM |
| Hi, could someone help me with arrays? | goodn | C Programming | 20 | 10-18-2001 09:48 AM |