I've got some problems/misunderstandings with arrays in C++.
int myArray[30]; myArray[1]=2; myArray[2]=4; This is spitting out a lot of compiler errors. I don't think it is necessary to include them here as this is an easy question for everybody with experience in C(++) I guess
- Why doesn't this work?
- Is there a way to create a "dynamic" array that has a fixed ammount of values (so no malloc needed) but where I can change the values during runtime?