How to Initialize structure that includes unique items out of multiple elements
问题 I have 4 arrays that represent: Colour (r , g, b, y) Shape (A , B , C, D) Number (1 , 2 , 3, 4) Texture (a, b , c, d) and also each array can have 4 values. I want to have in an array all the possible combinations of all these elements. For example rA1a, rB1a,rC1a and so on. I am thinking of creating a structure and then somehow create these 256 elements of the structure. However I am totally blind to how I can do this—I mean create the 256 elements ! Can someone please point me in the right