I'm totally new to programming so please bare with me.
I got 24 arrays of the same size and I have to call 2 functions with each array as a parameter. So first I tried it like that:
int array1[1023];
int array2[1023];
int array3[1023];
...
int array24[1023];
generateCode(array1, 2, 6);
generateCode(array2, 3, 7);
...
generateCode(array24, 4, 6);
calculate(input, array1, 1);
calculate(inpute, array2, 2);
...
calculate(input, array24, 24);
It works that way but it looks horrible. So my question is how can I simplify that? I googled for hours and I think I need something like a multidimensional array. But these things are messing up my mind on a different level :(
Hope someone can help me with this problem.
Thanks in advance!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…