when I say
struct some_struct{
string Name;
int Count;
};
some_struct MyStruct[5];
it is okay, but when I say
MyStruct[3].Name="Todd";
I recieve a cannot allocate 0 sized constant array
does anyone know why, I've include just about every library there is just to be safe, and I am using namespace std.
struct some_struct{
string Name;
int Count;
};
some_struct MyStruct[5];
it is okay, but when I say
MyStruct[3].Name="Todd";
I recieve a cannot allocate 0 sized constant array
does anyone know why, I've include just about every library there is just to be safe, and I am using namespace std.