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 |
哪位大哥帮帮忙,为什么一直wa#include<iostream.h> void main() { char array[27]; char array1[1000]; cin>>array; cin.ignore(); cin.getline(array1,1000); cout<<char(array[array1[0]-'A']-32); for(int i=1;array1[i]!='\0';i++) { if(array1[i]<='z'&&array1[i]>='a') cout<<array[array1[i]-'a']; else if(array1[i]==char(32)) cout<<" "; } cout<<endl; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator