| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
为什么不输出结果呀????#include<stdio.h>
#include<math.h>
void main ()
{
char a[26],b[200];
int i,j,p,l,c[200];
for(i=0;i<26;i++)
scanf("%c",&a[i]);
scanf("\n");
for(j=0;;j++)
{ scanf("%c",&b[j]);
if(scanf("%c",&b[j])=='\n') {p=j; goto end;}
}
end: for(l=0;l<p;l++)
c[l]=b[l]-'a';
for(l=0;l<p;l++)
printf("%c",a[c[l]]);
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator