???????????
???????????? ???????[ 2013/5/21 13:18:15 ] ????????
????????????
??????????δ????????????????a>b??????a????????a/b
??????????δ??????????????????????
????---int max (int a?? int b?? char *msg)
????---void divide (int *a?? int *b)
????divide???????a/b?????max????????????????????????н?????
????int max (int a?? int b?? char *msg)
????{
????char dsp[20]?? /*?????????С?20??char??????*/
????if (a<0 || b<0) /*???a??b?????????????????*/
????return -1?? /*????????*/
????if (a>b) /*???a????b??*/
?????? /*???????*/
????else
????divide (&a?? &b)??
????sprintf (dsp?? ”%s %d”??msg??a)??
????printf (dsp)??
????return a??
????}
????void divide (int *a?? int *b)
????{
????(*a)=(*a)/(*b)??
????return ??
????}
??????????????
??????????????????
?????????????????
????---??????????????????
??????????????????
????---????
?????????????????????
????---??????????????
??????д????????
????---?????????????????????????????divide( int *a?? int *b)????
??????????????????m??n?????????????
????int test ( )
????{
????int a=m??
????int b=n??
????divide( &a?? &b)??
????}
??????????в???????????????
????????????????bug
???????????е????????????????
???????????????
??????ж?b?????0?????????????
???????????msg????????a??????λ??????20??????dsp???????
??????msg?????????????NULL???sprintf??????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11