I have two tuples like this:
tuple Combination_L {
int rooms;
int instructors;
int studentgroups;
int courses;
};
{Combination_L} L = ...;
tuple Combination_T {
int days;
int slots;
};
{Combination_T} T = ...;
So, I want to combine Tuples L and T to initialize the Tuple V.
And this Tuple Vl must be:
tuple Combination_L_T{
int rooms;
int days;
int slots;
int instructors;
int studentgroups;
int courses;
};
{Combination_L_T} Vl = {};
execute {
for (var p in L){
for (var q in T){
Vl.add(<p.rooms,
q.days,
q.slots,
p.instructors,
p.studentgroups,
p.courses>);
};
};
};
So, I become a error warning “missing expression” by Vl.add.
Could you tell me please, how could I fix this error?. Thanks all!
New contributor
Yoom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.