constructor in a struct c++ code example
Example: c++ struct constructor
struct TestStruct {
int id;
TestStruct() : id(42)
{
}
};
struct TestStruct {
int id;
TestStruct() : id(42)
{
}
};