³ÌÐòÉè¼ÆÓïÑÔʵÑéÖ¸µ¼Êé
ʵÑéÆß ½á¹¹Ìå
ʵÑéÄ¿µÄ£º
1. ÕÆÎսṹÌåÀàÐͱäÁ¿µÄ¶¨ÒåºÍʹÓá£
2. ÕÆÎսṹÌåÀàÐÍÊý×éµÄ¸ÅÄîºÍʹÓ÷½·¨¡£ 3. ÕÆÎÕÁ´±íµÄ¸ÅÄîºÍ³õ²½µÄʹÓ÷½·¨¡£
ÄÚÈÝ£º
1. ÏÖÓÐÈç϶¨ÒåÒ»¸öµãºÍÔ²µÄ½á¹¹Ì壺
struct POINT { struct CIRCLE { float x; float r; float y; struct POINT center; }; }; ÓÃÒ»¸öº¯ÊýÀ´ÊµÏÖÅжÏij¸öÔ²ÊÇ·ñ°üº¬×ø±êԵ㣬ÆäÊײ¿Îª£º
int HavingOrigin(struct CIRCLE c)
·µ»Ø1±íʾ°üº¬£¬0±íʾ²»°üº¬¡£ Ö÷³ÌÐòÊäÈëÔ²µÄ²ÎÊý£¬È»ºóµ÷Óú¯ÊýÅжϣ¬²¢Êä³öÅжϽá¹û¡£
X:1.2 Y:3.3 R:5.0 Having Origin. Avg=3.000 X:10.2 Y:3.3 R:5.0 Not Having Origin. Avg=3.000
2. ÿ¸öѧÉúÓÐѧºÅ¡¢ÐÕÃû¡¢ÓïÎÄ¡¢Êýѧ¡¢ÍâÓïºÍƽ¾ù³É¼¨¡£½¨Á¢Ò»¸ö×î¶à±£´æÎå¸öѧÉú³É¼¨µÄ½á¹¹ÌåÀàÐÍÊý×é¡£
Inputº¯ÊýÊäÈëѧÉúµÄѧºÅ¡¢ÐÕÃûºÍÈýÃſεijɼ¨£¬²¢¼ÆËãƽ¾ù³É¼¨£¬º¯ÊýÊײ¿Îª£º Input(int n, struct STUDENT s[])
Ö÷³ÌÐòµ÷ÓÃInputº¯ÊýÊäÈëѧÉú³É¼¨£¬È»ºóÊä³öѧÉúµÄÐÅÏ¢¡£
N=3 1 Zhang 60 70 80 2 Wang 70 80 90 3 Li 30 50 80 1 Zhang 60 70 80 70 2 Wang 70 80 90 80 3 Li 30 50 80 53 struct Tstudent { char No[5]; char Name[20]; int Chinese; int Math; int FL; int Average; };
µÚ7Ò³
³ÌÐòÉè¼ÆÓïÑÔʵÑéÖ¸µ¼Êé
ʵÑé°Ë Îļþ
ʵÑéÄ¿µÄ£º
1. ÕÆÎÕÎļþµÄ¶¨ÒåºÍʹÓá£
2. ÕÆÎÕÎļþµÄ´ò¿ª¡¢¹Ø±ÕºÍ¶ÁдµÈʹÓ÷½·¨¡£
ÄÚÈÝ£º
µÚ8Ò³