博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
翻转吧,字符串
阅读量:7095 次
发布时间:2019-06-28

本文共 679 字,大约阅读时间需要 2 分钟。

View Code
1 #include
2 #include
3 int main() 4 { 5 char str[300] ; 6 int i, j,k, t, n,iq, len ; 7 scanf("%d", &t); 8 getchar() ; 9 for(iq=0; iq
=0)16 {17 if(i==0)18 for(k=i; k<=j; k++) printf("%c", str[k]) ;19 if(str[i]==' ')20 {21 for(k=i+1; k<=j; k++) printf("%c", str[k]) ;22 printf(" ") ;23 j = i - 1 ;//注意思考24 }25 i-- ;26 }27 printf("\n") ;28 }29 return 0 ;30 }

多思考

转载于:https://www.cnblogs.com/yelan/archive/2013/01/26/2878109.html

你可能感兴趣的文章
(转)as3数组的深复制和浅复制
查看>>
Choose a destination with a supported architecture in order to run on this device.
查看>>
HTML5/CSS3系列教程:HTML5 区域(Sectioning)的重要性
查看>>
Spring Batch学习笔记
查看>>
asp.net mvc 如何在执行完某任务后返回原来页面
查看>>
Oracle: listener.ora 、sqlnet.ora 、tnsnames.ora的配置及例子
查看>>
ASP.NET 中 GridView(网格视图)的使用前台绑定
查看>>
Windows的本地时间(LocalTime)、系统时间(SystemTime)、格林威治时间(UTC-Time)、文件时间(FileTime)之间的转换...
查看>>
[转]XBRL应用软件分类
查看>>
C++ 文件的复制、删除、重命名
查看>>
Oracle Patch Set Update and Critical Patch Update April 2011 Released
查看>>
hdu 2189
查看>>
std::map, std::multimap, std::tr1::unordered_map 区别 - 笔记本 - 博客频道 - CSDN.NET
查看>>
/usr/bin/ld: cannot find -lxxx问题总结
查看>>
C 语言 restrict 关键字的使用
查看>>
ASP.NET 自定义成员资格提供程序 Part.4(使用自定义提供程序类)
查看>>
ASP.NET调用V3版本的Google Maps API
查看>>
苹果面试8大难题及答案
查看>>
运行 tomcat 错误 : java.lang.Exception: Socket bind failed: [730048] 解决方法:
查看>>
并行接口和串行接口
查看>>