how to add consturctor to structure code example
Example: c++ struct constructor
struct TestStruct {
int id;
TestStruct() : id(42)
{
}
};
struct TestStruct {
int id;
TestStruct() : id(42)
{
}
};