I need to contain integers for several(n) different float values.
- for example: for float number 1,465658 I need to contain number 1 and I need to be able to manipulate
the integer number at any time.
Is there some container for it in C++ or do I have to do some multidimensional array(if yes which)?
something like: float[1,465658]=3;
new float[1,98978]=0;
std::map? As long as your keys are unique.Be aware that you may encounter some floating point rounding imprecision depending on the granularity of your values, and you may end up overwriting existing entries.