??????1???????????????????????????????????????????????????????
????#include "string.h"
????#include "ctype.h"
????main()
????{
????char x[20];
????int r??d;
????gets(x); /*???????r????????????*/
????scanf("%d"??&r); /*????????????????2-16*/
????d=Tran(x??r);
????printf("%s=%d "??x??d);
????}
????int Tran(char *p??int r)
????{
????int d??i??cr;
????char fh??c;
????d=0;
????fh=*p;
????if(fh=='-')p++;
????for(i=0;i<strlen(p);i++)
????{
????c=*(p+i);
????if(toupper(c)>='A')
????cr=toupper(c)-'A'+10;
????else
????cr=c-'0';
????d=d*r+cr;
????}
????if(fh=='-')
????d=-d;
????return(d);
????}
????(7)????????????????????????? ???????????????????????????a??b???????????????????????????????r?У???r???0????b????????a????r????????b???????a????b???????????????????r???????????????r?0?????????b?д????????????????????
??????1???????????????????????????????????
????[???????while????????????????b??]
????main()
????{
????int a??b??r;
????doscanf("%d%d"??&a??&b);
????while(a<=0||b<=0); /*???a??b???????*/
????r=a%b;
????while(r!=0)
????{
????a=b;b=r;r=a%b;
????}
????printf("%d "??b);
????}
????[????????do…while????????????????a??]
????main()
????{
????int a??b??r;
????doscanf("%d%d"??&a??&b);
????while(a<=0||b<=0); /*???a??b???????*/
????do
????{
????r=a%b;a=b;b=r;
????}while(r!=0);
????printf("%d "??a);
????}
????????????????????????С???????????????????????a??b??С??????=a×b/???????
????(8)??????????????
??????1????????????? ????????????????????????????????????????????е????????????????????????????????x??????a??????????????С?
?????????x??a???鵱???????????б??????????????????x??????????????У???????????2??裻
????????????????λ?á???????a???1??????????????xС???????????????±??i ??
???????????a???????????????i????????????????λ???ó??????????λ??????±??i??λ???
???????x????a(i)?С?????μ????“‘????’?в??????????1”??
??????2????????????? ?????????????????????????????????????????????????е?λ??????±????????????????????????????λ?????????????????1??
??????1??????a??????????????????????????????????????????a????????????????????????
????#define N 6
????main()
????{
????int fs[N]={69??90??85??56??44??80}??x;
????int i??j??n;
????n=N;
????scanf("%d"??&x); /*???????????????*/ /*???2???????????λ?????????±?*/
????for(i=0;i<n;i++)
????if(fs[i]==x)break;
????if(i==n)
????printf("Notfound! ");
????else /*?????λ??????????????????*/
????{
????for(j=i+1;j<n;j++) fs[j-1]=fs[j];
????n=n-1; /*????????1*/
????}
????for(i=0;i<n;i++)
????printf("%d"??fs[i]);
????}