Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

create array of structs cpp

Customer::Customer(int id, string input_name): uid(id), name(input_name) {}
Customer customerRecords[2];
customerRecords[0] = Customer(25, "Bob Jones");
custoemrRecords[1] = Customer(26, "Jim Smith");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #array #structs #cpp
ADD COMMENT
Topic
Name
4+7 =