The value of i is 6. This is correct.
dName has the right names and correct number 6 of them.
dHit is correct also. The correct amount of numbers and right values are there. So the problem is with something else maybe? Like i +1 with dealer but I dont; know why that would be.
You are going out of bounds of your arrays. If they have 7 elements, and i = 6, then you are accessing array[7] which is out of bounds (valid indices are from 0 to 6 inclusive).
OK but I took that away and it is like one above your last post. This still throws the error. It is supposed to just add to the array because the dealer for black jack is not included in the input file.
If you haven't changed it (i.e. it is as written directly above this post) and i is 6 and the size of the arrays is 7, you are going out of bounds on your arrays.
It is exactly like the post above your last. Just forget everything before that. :)
Listen though it doesn't make sense to me because the array is initialized like this
1 2 3
int hitL[PLAYERCOUNT]= {0}, cardsT[PLAYERCOUNT] = {0},
index = 0, i = 0;
string playersname[PLAYERCOUNT];
Remember PLAYERCOUNT = 7?
So even if i is 6 wouldn't the array still have an extra spot because it was initialized as 7? You see? Or am I wrong?