here i get the error: expected primary-expression before ']' tokenCode:struct card {
bool l;
};
bool pair(card[] cards) {
return true;
}
why is this?
Printable View
here i get the error: expected primary-expression before ']' tokenCode:struct card {
bool l;
};
bool pair(card[] cards) {
return true;
}
why is this?
change
bool pair(card[] cards)
into
bool pair(card cards[])
you just have the [] in the wrong location ...
Code:bool pair(card cards[]) {
return true;
}
The parameter declaration "card[]" is invalid. The array indicator is in the wrong place:
ViggyCode:bool pair(card cards[])
Now that's pretty funny (2 responses at the same time; 1 minute late)!
Viggy