allocating multiple instance of the same class on the same line
@interface Velocity2 : UIViewController {
UILabel * answerLabel;
UITextField * varA,varB,varC;
Is this legal to do or is below the only way to do it?
UITextField * varA;
UIText开发者_开发技巧Field * varB;
UITextField * varC;
Legal:
UITextField *varA, *varB, *varC;
UITextField *varA, *varB, *varC;
精彩评论