![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串
noble_
我要当神犇
展开
-
UVa272
题目 关于字符串操作,大致思想是顺次读进每个字符,判断是不是",是就处理后输出,不是就输出原字符。 #include int main() { int c,q=1; while((c=getchar()) != EOF) { if(c=='"') { printf("%s",q ?"``" : "''"); q=!q; } else { print原创 2017-01-26 13:20:29 · 259 阅读 · 0 评论 -
UVa401
//先上代码#include #include #include const char* rev="A 3 HIL JM O 2TUVWXY51SE Z 8 ";//所有字符的reverse状态 const char* msg[]={"not a palindrome","a regular palindrome","a mirrored string","a mirrored原创 2017-01-26 22:35:03 · 164 阅读 · 0 评论