Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
It creates an array of size ASCII value of 'Z' plus one, and initialises all of them to zero. Somewhat wasteful on space, but makes some later logic easier.
Could anyone explain to me how the line
int stocks['Z' + 1] = {0};
works? Thanks a lot~Like how you used the numeric value of the char as an index :)