![]()
|
Go to the first, previous, next, last section, table of contents.
構造体定義
構造体とは, 各成分の要素が名前でアクセスできる固定長配列と思ってよい.
各構造体は名前で区別される. 構造体は,
[1] struct rat {num,denom};
0
[2] A = newstruct(rat);
{0,0}
[3] A->num = 1;
1
[4] A->den = 2;
2
[5] A;
{1,2}
Go to the first, previous, next, last section, table of contents. |