G
Guest
I was wondering if someone could tell me the exact syntax for initializing a Color array.
I thought it would be something like below, but I check them and its says they're empty
Color colors[] = {Color::Black,Color::Blue,Color::Black}
It makes the array and puts it at a length of 3 but it doesn't put the colors in the array? Once I figured out that it was creating the slots of the array I could easily set each slot, but I figure I must be doing something wrong in the initialization.
I thought it would be something like below, but I check them and its says they're empty
Color colors[] = {Color::Black,Color::Blue,Color::Black}
It makes the array and puts it at a length of 3 but it doesn't put the colors in the array? Once I figured out that it was creating the slots of the array I could easily set each slot, but I figure I must be doing something wrong in the initialization.