晋察冀Jìn Chá Jì
给划线字选择正确读音。传记(zhuàn chuán) 茶几 (jī jǐ) 麦囤 (dùn tún)节奏(zòu zhòu) 倾听 (qīn qīng) 一册 (cè chè)
点击查看答案
看拼音写词语jù pà shuāi lǎo pàn duàn xián yí cāo zòng( ) ( ) ( ) ( ) ( )fèi xū jǔ sànɡ chàn dǒu jǐn shèn qí qū( ) ( ) ( ) ( ) ( )
杭电2000 ASCII码排序#include#includeint main(){ int n,ch[3],i,t,k,j; while(scanf("%d",&n)!=EOF) { scanf("%s",ch); for(i=0;i<3;i++) { if(ch[i]<ch[0]) { t=ch[0]; ch[0]=ch[i]; ch[i]=t; } } if(ch[2]<ch[1]) { k=ch[2]; ch[2]=ch[1]; ch[1]=k; } for(j=0;j<3;j++) { if(j==0) printf("%c",ch[0]); else printf(" %c",ch[j]); } printf("\n"); } return 0;}Problem Description输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。 Input输入数据有多组,每组占一行,有三个字符组成,之间无空格。 Output对于每组输入数据,输出一行,字符中间用一个空格分开。 Sample Inputqweasdzxc Sample Outpute q wa d sc x z
下列程序的输出结果是______。main(){ char ch[2][5]={"6937","8254"},*p[2]; int i,j,s=0; for(i=0;i<2;i++) p[i]=ch[i]; for(i=0;i<2;i++) for(j=0;p[i][j]>'\0';j+=2) s=10*s+p[i][j]-'0'; printf("%d\n",s);}A.69825B.63825C.6385D.693825
下列程序的输出结果是( ) main() { char ch [2][5]={"6934","8254"},*p[2]; int i,j,s=0; for(i=0;i<2;i++) p[i]=ch[i]; for(i=0;i<2;i++) for(j=0;p[i][j]>'\0'&&p[i][j]<='9';j+=2) s=10*s+p[i][j]-'0'; printf("%d\n",s); }A.6385B.69825C.63825D.693825
以下程序运行后,输出结果是 ( ) main( ) {char ch[2][5]={"693","825"},*p[2]; int i,j,s=0; for(i=0;i<2;i+ +)p[i]=ch[i]; for(j=0;j<2;j+ +) for(j=0;p[i][j]>='0'& & p[i][j]<='9';j+=2) s=10 * s+p[i][j]-'0'; printf("%d\n",s); }A.6385B.22C.33D.693825
阅读以下说明和C程序,填入(n)外。[说明]以下C程序实现了将字符串转化为浮点数的功能。例如字符串“1234567”转化为浮点数1234567;字符串“100.02035”转化为浮点数100.02035;字符串“-100.02035”转化为浮点数-100.02035。程序中的部分变量的含义如表9-5。[C程序]double StrToDouble(char*s){char hexch[]="0123456789";int i,j,psign=1;DWORD n,k,intpart=0;double doublepart=0,kdouble,resoult;char ch;if (*s=='.'{(1);(2);}char*s1=s,*temp=NULL;temp=strrchr ( s1,'.' );if (!temp){k=1; intpart=0;for (i=strlen (s); i>0;i--){ch=s[i-1];if (ch>0x3f) ch&=0xDF;n=0;for (j=0; j<10; j++)if ( ch==hexch[j]) n=j;intpart+= (n*k);k*=10;}}else{s1=temp+1;kdouble=0.1;doublepart=0;for ((3)){ch=s1[i-1];if (ch>0x3f) ch&=0xDF;n=0;for (j=0; j<10; j++ )if (ch==hexch[j])n=j;doublepart+= (n*kdouble);(4);}*temp=NULL;k=1; intpart=0;for ((5);){ch=s[i-1];if (ch>0x3f) ch&=0xDF;n=0;for (j=0; j<10; j++)if (ch==hexch[j]) n=j;intpart+= (n*k);k*=10;}//end else}(6);return resoult;}