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