I'm doing the Stanford xcode class CS193P assignment #2 and I'm getting some errors. The tasks is to write a calculator program with variables. I am using Xcode 3.2.6 www.stanford.edu/class/.../Assignment%202_1.pdf
I'm getting the error Expected expression before '@' token when I am declaring vp
#define VARIABLE_PREFIX @“%”
- (void)setVariableAsOperand:(NSString *)variableName
{
NSString *vp = VARIABLE_PREFIX; (error is on this line)
NSString *variable = [vp stringByAppendingString:variableName];
[self addObjectToExpression:variable];
}
Does anyone know how to fix this problem? Message me if you have any questions. Thanks for your help!