How would I make a array of number who I don't know as in yet? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How would I make a array of number who I don't know as in yet?

If I use a imu it produces values who I want to make a array but this is based on a sensors who's values only depends on angle so I might not get the same angle again so what would thus mean to that array I had made?

1st Jun 2015, 12:27 AM
Jai López
Jai López - avatar
1 Answer
+ 1
use a vector instead of an array. vector are data structure that you access like an array but you can allocate elements on the fly depending on the size of the data source. it's part of the standard template library. if you Google STL vector they have lots of example on how to implement it.
12th Jun 2015, 2:07 AM
Matt Thompson
Matt Thompson - avatar