-5
我已經宣佈在Objective-C項目自定義對象數調用自定義對象:其名稱中包含在Objective-C
Student* student1 = [[Student alloc]init];
Student* student2 = [[Student alloc]init];
Student* student3 = [[Student alloc]init];
Student* student4 = [[Student alloc]init];
Student* student5 = [[Student alloc]init];
Student* student6 = [[Student alloc]init];
我怎麼能叫他們在週期
for (int i=1; i<=6; i++)
{
} ?
您應該使用數組這個 – Hamish
**你不要**使用數組! – luk2302