Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ struct constructor

struct TestStruct {
        int id;
        TestStruct() : id(42)
        {
        }
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #struct #constructor
ADD COMMENT
Topic
Name
3+7 =