I'm making a program that has a struct inside of a class, and I made a constructor for the struct inside the class. As you can see by the code segment below (I tried to use a small chunk to repesent the problem), I use the struct in the class for values, and (not listed) I use the class itself for functions having to do with the values. But they don't matter for now.
The problem is that the constructor ONLY initializes the values starting at lottery.lotterya[9].numbers[2] and up. Ever variable and number after 9 is properly "constructed", but all of the values in the structs lottery.lotterya[9].numbers[] before 9 are blank for some reason. Not only do they begin intializing at 9 for some reason, but they begin at lottery.lottery[9].numbers[2] and continue on from there. I was wondering how I could fix this problem, so that EVERY struct in lottery[] is initialized, not just 9-300 instead of 0-300 for some reason. Thanks for your help.
class
_lottery{
public
: struct _lotterya{
int numbers[ 6]; int month; int day; int year; int week; int season; // Lotterya Constructor --- VERY WEIRD PROBLEM --- numbers 1 - 8 are always blank of these constructor values, until 9, where they start // from the 3rd number then continuee until lotterya[300];, why only lotterya[9] to lotterya[300] // - leaving out 90 variables total by the time it gets to [9].numbers[2]_lotterya()
{
numbers[0] = 9;
numbers[1] = 11;
numbers[2] = 14;
numbers[3] = 23;
numbers[4] = 32;
numbers[5] = 33;
numbers[ 6] = 34;
month = 5;
day = 4;
year = 2006;
week = 1;
season = 2;
};
} lotterya[300];
... extra code...
} lottery;

Weird Constructor Problem
zkent