i'm pretty new to C++ and am trying to make an array in which every element is of a specific bit-size. I've tried doing this:
Sequence<uint64_t>;
In which Sequence would be the array name and every element would have a size of 64 bits. However get the following error: "error: ‘Sequence’ does not name a type"
Thanks in advance!
How do I use <uint64_t> in an array
449 views Asked by Pol At
1
std::vectorandstd::arrayare the recomended array containers in C++.You can use
std::vectorif you need a dynamic size array, e.g.:And use
std::arrayfor a fixed size array, e.g.:You can see in the links above how to use these containers.