struct
{
int integer;
float real;
}
first_structure;
したがって、first_structure のメンバーを参照するには、次のように記述します。
first_structure.integer = 7
私が書く場合:
struct two_numbers
{
int integer;
float real;
}
first_structure;
次に、*two_numbers* タグを使用して、次のような 2 つ目の構造を作成できます。
struct two_numbers second_structure;
また、typedef を使用してシノニムを作成できることも理解しています。
しかし、以下のコードを理解できません( http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/ObjectiveC/Chapters/ocObjectsClasses.htmlのページから):
typedef struct objc_class *Class;
typedef struct objc_object {
Class isa;
} *id;
したがって、すべてのオブジェクトには、インスタンスであるクラスを示す isa 変数があります。
どのようにそれを伝えることができますか???? このコードの意味を教えてください。
ありがとうございました。