markdown 在线制作ppt json校验和格式化工具

POJ 2141

 1 #include<iostream>
 2 #include<stdio.h>
 3 using namespace std;
 4 
 5 int main()
 6 {
 7     //freopen("1.txt","r",stdin);
 8     char a[26];
 9     for(int i = 0; i < 26; i++)
10     {
11         cin>>a[i];
12     }
13     char c;
14        c = getchar();
15     while(1){
16     c = getchar();
17     if(c == '\n')
18         break;
19     if(c != ' ')
20     {
21            if(c-'a' >= 0 && c-'a' <= 25)
22         cout<<a[c-'a'];
23         else
24         cout<<char(a[c-'a'+32] - 32);
25        }else{
26         
27        cout<<c;
28        }
29     }
30     system("pause");
31 }

 

关注我的公众号,当然,如果你对Java, Scala, Python等技术经验,以及编程日记,感兴趣的话。 

技术网站地址: vmfor.com

posted @ 2015-06-10 17:05  GavinHacker  阅读(138)  评论(0编辑  收藏  举报
markdown 在线制作ppt json校验和格式化工具