C++ std::array don't work on my local compiler -
C++ std::array don't work on my local compiler -
i follow illustration array::size, it's don't work on dev c++ ide, , don't know why.
i tried run on code blocks it's still same. think code right how prepare problem
here code
#include <iostream> #include <array> using namespace std; void usearray() { array<int,4> myints; myints[0]=1; cout<<"size of array: "<<myints.size(); } int main() { usearray(); system("pause"); }
and compiler error:
std::array
c++11 only. dev-c++ not back upwards c++11.
if you're looking options visual studio article right starting place: http://www.cplusplus.com/articles/36vu7k9e/
c++ arrays
Comments
Post a Comment