SyntaxFix
Write A Post
Hire A Developer
Questions
try
std::fill
and also
std::size siz = vec.size(); //no memory allocating vec.resize(0); vec.resize(siz, 0);