I want to pass a struct within a method so i can change it's value within, but I am not too sure on it's syntax:
struct qsTracker {
int points;
BOOL flagged;
} myCurrentQs;
[self calculateScore:myCurentQs];
-(void) calculateScore:(struct qsTracker) currentQs {
currentQs.points++;
currentQS.flagged = YES;
}
Obviously, currentQs doesn't see any changes. any help would be much appreciated.