??????????????????
????????????????????????struct ???????? ????????*
???????????????????????3??????????????
?????????????.?????
????(*????????).?????
????????????->?????
????int main(int argc?? const char * argv[]) {
????// ???????????????
????struct Student {
????char *name;
????int age;
????};
????// ??????????????
????struct Student stu = {“MJ”?? 27};
????// ????????????????????
????struct Student *p;
????// ?????????stu
????p = &stu;
????//??????????3??????????????
????// ???1???????????.?????
????printf(“name=%s?? age = %d ”?? stu.name?? stu.age);
????// ???2??(*????????).?????
????printf(“name=%s?? age = %d ”?? (*p).name?? (*p).age);
????// ???3??????????->?????
????printf(“name=%s?? age = %d ”?? p->name?? p->age);
????return 0;
????}
?????????????ο???洢???
??????????? ???????洢??????????????????洢???????????????????
???????:
??????????????洢?????????????????????????洢???????????????????
???????????????????????????????????С?? ???????С?????
????????:
???????????洢???”????”?洢????洢??????? ????????????8??????洢??? ?????????洢??????????????洢????С?
???????????洢???”??”?洢????洢??????? ????????????
??????????
?????????????????????????????????????????????????????? ?????????iOS????????????????
?????????????????
????enum ???????????{
????????1??
????????2??
????}??
????????????????????????????? ?????????????????????????????????? ??????????????????????????????0??????ε?????
???????????????淶??
????*??1?????????????????k??? ??????????????????? ?????????????
??????2???????????? ???????????????????д*
????enum Season
????{
????kSeasonSpring??
????kSeasonSummer??
????kSeasonAutumn??
????kSeasonWinter
????};