struct OBJECT
{
unsigned int Var1;
std::string Str1;
...
bool YesNo;
};
OBJECT Obj[ 327 ];
I am confused about how to zero-out Obj. It has several different type of elements. Do I have to set all of its member to 0?
Like... Obj[0].Str = "";
? So the question is, what is the proper way of doing it?
My attempt:
::memset( &Obj, 0, sizeof( Obj ) );
I am not sure if I am doing it correctly...
Oh and are there any faster way to zero-out an array?