Google

Go to the first, previous, next, last section, table of contents.


¹½Â¤ÂÎÄêµÁ

¹½Â¤ÂΤȤÏ, ³ÆÀ®Ê¬¤ÎÍ×ÁǤ¬Ì¾Á°¤Ç¥¢¥¯¥»¥¹¤Ç¤­¤ë¸ÇÄêĹÇÛÎó¤È»×¤Ã¤Æ¤è¤¤. ³Æ¹½Â¤ÂΤÏ̾Á°¤Ç¶èÊ̤µ¤ì¤ë. ¹½Â¤ÂΤÏ, struct ʸ¤Ë¤è¤êÀë¸À¤µ¤ì¤ë. ¤¢¤ë·¿¤Î¹½Â¤ÂΤÏ, ÁȤ߹þ¤ß´Ø¿ô newstruct ¤Ë¤è¤êÀ¸À®¤µ¤ì¤ë. ¹½Â¤ÂΤγƥá¥ó¥Ð¤Ï, ±é»»»Ò -> ¤Ë¤è¤ê¥¢¥¯¥»¥¹¤¹¤ë. ¥á¥ó¥Ð¤¬¹½Â¤ÂΤξì¹ç, -> ¤Ë¤è¤ë»ØÄê¤ÏÆþ¤ì»Ò¤Ë¤Ç¤­¤ë.

[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.