¹þ¹¤´óCÓïÑÔ³ÌÐòÉè¼Æ¾«ËèMOOCĽ¿Î Öܱà³ÌÌâ´ð°¸ ÏÂÔر¾ÎÄ

\

´Ó¼üÅÌÊäÈëÒ»´®×Ö·û£¨¼ÙÉè×Ö·ûÊýÉÙÓÚ8¸ö£©£¬ÒԻسµ±íʾÊäÈë½áÊø£¬±à³Ì½«ÆäÖеÄÊý×Ö²¿·Öת»»ÎªÕûÐÍÊý²¢ÒÔÕûÐ͵ÄÐÎʽÊä³ö¡£ º¯ÊýÔ­ÐÍΪ int Myatoi(char str[]);

ÆäÖУ¬ÐβÎÊý×éstr[]¶ÔÓ¦Óû§ÊäÈëµÄ×Ö·û´®£¬º¯Êý·µ»ØֵΪת»»ºóµÄÕûÐÍÊý¡£ ½âÌâ˼·µÄ¹Ø¼üÊÇ£º1£©ÅжÏ×Ö·û´®ÖеÄ×Ö·ûÊÇ·ñÊÇÊý×Ö×Ö·û£»2£©ÈçºÎ½«Êý×Ö×Ö·ûת»»ÎªÆä¶ÔÓ¦µÄÊý×ÖÖµ£»3£©ÈçºÎ½«Ã¿Ò»¸öת»»ºóµÄÊý×ÖÖµ¼ÓÆðÀ´ÐγÉÒ»¸öÕûÐÍÊý¡£ ³ÌÐòÔËÐнá¹ûʾÀý1£º Input a string:7hg09y¨L 709

³ÌÐòÔËÐнá¹ûʾÀý2£º Input a string:9w2k7m0¨L 9270

³ÌÐòÔËÐнá¹ûʾÀý3£º Input a string:happy¨L 0

ÊäÈëÌáʾÐÅÏ¢£º\ÊäÈë¸ñʽ: \Êä³ö¸ñʽ£º\*/

#include <> #include <>

#include <> int Myatoi(char str[]){ int i,j;

for (i=0,j=0;str[i]!='\\0';i++){

if (str[i] >='0' && str[i]<='9'){ str[j]=str[i]; j++; } } str[j]='\\0'; return atoi(str); } int main() {

char s[7];

printf(\ scanf(\ printf(\ printf(\ return 0; }\

\ÊäÈën¸öÕûÊý£¨n´Ó¼üÅÌÊäÈ룬¼ÙÉènµÄÖµ²»³¬¹ý100£©£¬°´ÆæżÊý·Ö³ÉÁ½×é²¢

Êä³ö¡£Êä³öÁ½ÐУ¬µÚÒ»ÐÐΪËùÓÐÆæÊý£¬µÚ¶þÐÐΪËùÓÐżÊý£¬±£³ÖÊý¾ÝµÄÏà¶Ô˳ÐòÓëÊäÈë˳ÐòÏàͬ¡£ º¯ÊýÔ­ÐÍÈçÏÂËùʾ£º

void Seperate(int a[], int n);?ame);

printf(\

printf(\ printf(\not?(Y/N):\ printf(\not?(Y/N):\

printf(\papers:\ stu[i].scholarship=0;

if (stu[i].finalScore>80 && stu[i].paper >=1) stu[i].scholarship+=8000;

if (stu[i].finalScore>85 && stu[i].classScore> 80) stu[i].scholarship+=4000;

if (stu[i].finalScore>90) stu[i].scholarship+=2000;

if (stu[i].finalScore>85 && stu[i].west=='Y') stu[i].scholarship+=1000; if (stu[i].classScore> 80 && stu[i].work=='Y') stu[i].scholarship+=850; printf(\

}

int ts=stu[0].scholarship,k; for (i=1;i

if (ts

printf(\ /*

1) Ժʿ½±Ñ§½ð£ºÆÚĩƽ¾ù³É¼¨¸ßÓÚ80·Ö£¨>80£©£¬²¢ÇÒÔÚ±¾Ñ§ÆÚÄÚ·¢±í1ƪ»ò1ƪÒÔÉÏÂÛÎĵÄѧÉúÿÈ˾ù¿É»ñµÃ8000Ôª£»

2) ÎåËĽ±Ñ§½ð£ºÆÚĩƽ¾ù³É¼¨¸ßÓÚ85·Ö£¨>85£©£¬²¢ÇҰ༶ÆÀÒé³É¼¨¸ßÓÚ80·Ö£¨>80£©µÄѧÉúÿÈ˾ù¿É»ñµÃ4000Ôª£»

3) ³É¼¨ÓÅÐã½±£ºÆÚĩƽ¾ù³É¼¨¸ßÓÚ90·Ö£¨>90£©µÄѧÉúÿÈ˾ù¿É»ñµÃ2000Ôª£» 4) Î÷²¿½±Ñ§½ð£ºÆÚĩƽ¾ù³É¼¨¸ßÓÚ85·Ö£¨>85£©µÄÎ÷²¿Ê¡·ÝѧÉúÿÈ˾ù¿É»ñµÃ1000Ôª£»

5) °à¼¶¹±Ï×½±£º°à¼¶ÆÀÒé³É¼¨¸ßÓÚ80·Ö£¨>80£©µÄѧÉú¸É²¿Ã¿È˾ù¿É»ñµÃ850Ôª£» */ return 0; }\

\