Kobi55
asked on
Struct Array Error
Hi
I got Error when i trying to put Struct Array in another struct
Error: cannot have instance field initializers in structs
private struct MyAcount
{
int InData ;
int OutData ;
int TotalData ;
bool EndOfDay ;
}
private struct InOut
{
long IdEmp ;
long Badge ;
MyAcount[] InOutAll = new MyAcount[5] ;
string DayNum ;
long DayAll ;
}
I got Error when i trying to put Struct Array in another struct
Error: cannot have instance field initializers in structs
private struct MyAcount
{
int InData ;
int OutData ;
int TotalData ;
bool EndOfDay ;
}
private struct InOut
{
long IdEmp ;
long Badge ;
MyAcount[] InOutAll = new MyAcount[5] ;
string DayNum ;
long DayAll ;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.