} if(flag==0)
printf(\¸ÃÐÕÃû²»´æÔÚ£¡\\n\
break;
case 3:return;
default:printf(\ÇëÔÚ1-3Ö®¼äÑ¡Ôñ\\n\ } }
˵Ã÷£ºÊ×Ïȶ¨ÒåÒ»¸ö±äÁ¿£¬ÊäÈëֵͨ¹ýswitchÀ´Ñ¡ÔñÏàӦģ¿é¡£ÓÃÒ»¸öforÑ»·ºÍ×Ö·û´®±È½Ïº¯ÊýÀ´²»¶ÏµÄ°ÑÊäÈëµÄÊý¾ÝºÍϵͳ´¢´æµÄÐÅÏ¢±È½Ï£¬Èç¹ûÏàͬ£¬ÔòÊä³öÐÅÏ¢¡£·ñÔòÌáʾÐÅÏ¢²»´æÔÚ£¡
4.1.4.ÐÞ¸ÄÐÅÏ¢º¯Êý
void modify() {
int i,j,item,num;
char sex1[3],s1[LEN],s2[LEN];
printf(\ÇëÊäÈëÒªÒªÐ޸ĵÄѧÉúµÄѧºÅ:\\n\ scanf(\ for(i=0;i if(strcmp(student[i].number,s1)==0) num=i; printf(\printf(\ÐÞ¸ÄÐÕÃû\\n\printf(\ÐÞ¸ÄÄêÁä\\n\printf(\ÐÞ¸ÄÐÔ±ð\\n\printf(\Ð޸ijöÉúÄêÔÂ\\n\ printf(\Ð޸ĵØÖ·\\n\printf(\Ð޸ĵ绰ºÅÂë\\n\printf(\ÐÞ¸ÄE-emailµØÖ·\\n\printf(\Í˳ö±¾²Ëµ¥\\n\printf(\while(1) { printf(\ÇëÑ¡Ôñ×Ӳ˵¥±àºÅ:\ scanf(\ switch(item) { case 1: printf(\ÇëÊäÈëеÄÐÕÃû:\\n\ scanf(\ strcpy(student[num].name,s2); break; case 2: printf(\ÇëÊäÈëеÄÄêÁä:\\n\ scanf(\ case 3: printf(\ÇëÊäÈëеÄÐÔ±ð:\\n\ scanf(\ strcpy(student[num].sex,sex1); break; case 4: printf(\ÇëÊäÈëеijöÉúÄêÔÂ:\\n\ scanf(\ strcpy(student[num].time,s2); break; case 5: printf(\ÇëÊäÈëеĵØÖ·:\\n\ scanf(\ strcpy(student[num].add,s2); break; case 6: printf(\ÇëÊäÈëеĵ绰ºÅÂë:\\n\ scanf(\ strcpy(student[num].tel,s2); break; case 7: printf(\ÇëÊäÈëеÄE-emailµØÖ·:\\n\ scanf(\ strcpy(student[num].email,s2); break; case 8:return; default:printf(\ÇëÔÚ1-8Ö®¼äÑ¡Ôñ\\n\ } } } ˵Ã÷£ºÊ×ÏÈÊäÈëÒªÐÞ¸ÄÐÅÏ¢µÄѧºÅ£¬Í¬Ñùͨ¹ý×Ö·û´®±È½Ïº¯ÊýÀ´ÅжÏѧºÅÊÇ·ñ´æÔÚ¡£Èç¹û´æÔÚÔòͨ¹ýswitchÓï¾äÀ´Ñ¡ÔñÐèÒªÐ޸ĵÄÐÅÏ¢£¬ÐÞ¸Äͨ¹ý×Ö·û´®¸´Öƺ¯Êý¡£Ð޸ĽáÊøºó¿ÉÒÔÑ¡ÔñÍ˳ö¸ÃÄ£¿é£¬½øÈëÖ÷½çÃæ¡£ 4.1.5.Ôö¼ÓÐÅÏ¢º¯Êý void increase() { int i=n,j,flag; printf(\ÇëÊäÈë´ýÔö¼ÓµÄѧÉúÊý:\\n\ scanf(\ do { flag=1; while(flag) { flag=0; printf(\ÇëÊäÈëµÚ %d ¸öѧÉúµÄѧºÅ:\\n\ scanf(\ for(j=0;j if(strcmp(student[i].number,student[j].number)==0) { printf(\ÒÑÓиÃѧºÅ£¬Çë¼ì²éºóÖØÐ¼Èë!\\n\ flag=1; break; } } printf(\ÇëÊäÈëµÚ %d ¸öѧÉúµÄÐÕÃû:\\n\ scanf(\ printf(\ÇëÊäÈëµÚ %d ¸öѧÉúµÄÄêÁä:\\n\ scanf(\ printf(\ÇëÊäÈëµÚ %d ¸öѧÉúµÄÐÔ±ð:\\n\ scanf(\ printf(\ÇëÊäÈëµÚ %d ¸öѧÉúµÄ³öÉúÄêÔÂ:£¨¸ñʽ£ºÄê.Ô£©\\n\ scanf(\ printf(\ÇëÊäÈëµÚ %d ¸öѧÉúµÄµØÖ·:\\n\ scanf(\ printf(\ÇëÊäÈëµÚ %d ¸öѧÉúµÄµç»°:\\n\ scanf(\ printf(\ÇëÊäÈëµÚ %d ¸öѧÉúµÄE-email:\\n\ scanf(\ if(flag==0) { i++; } }while(i printf(\¼ÈëÍê±Ï£¡\\n\\n\} ˵Ã÷£ºÊ×ÏÈÅжÏѧºÅÊÇ·ñ´æÔÚ£¬Èç¹û´æÔÚ£¬ÔòÌáʾѧºÅÒѾ´æÔÚ¡£·ñÔòͨ¹ýÑ»·