代码:

#include "stdafx.h"
#include <string.h> int _tmain(int argc, _TCHAR* argv[])
{
char str[]=""; do{
printf("Enter a number/string:");
scanf("%s",str); printf("%s\n",strrev(str));// 颠倒字符串函数 strrev
}while(strcmp(str,"")!=);// 字符串比较函数strcmp return ;
}

输出:

Enter a number/string:

Enter a number/string:

Enter a number/string:abc
cba
Enter a number/string:

--2020年6月10日--

最新文章

  1. ANDROID学习书单
  2. AngularJS 简介、指令、表达式
  3. generated clock
  4. JVM的栈内存
  5. 设计模式:状态模式(State)
  6. linux:awk之RS、ORS与FS、OFS
  7. ◆ 火狐浏览器去除JS方法:
  8. 【C#学习笔记】改变字体
  9. jQuery实现等比例缩放大图片让大图片自适应页面布局
  10. 《算法导论》习题解答 Chapter 22.1-7(关联矩阵的性质)
  11. 3第一周课后练习&amp;#183;阅读计划(2)-使用指针来访问私有数据成员
  12. 一键分享到新浪微博、腾讯微博、搜狐微博、人人网、开心网、百度收藏等js代码大全
  13. Struts2使用Interceptor实现权限控制的应用实例详解
  14. FutureTask——另一种闭锁的实现
  15. dos命令(入门)
  16. mac下crontab定时任务使用
  17. 《HTTP权威指南》6-代理
  18. golang xorm框架的使用
  19. hdu5992 kdt
  20. JAVA中日期和时间的格式化选项

热门文章

  1. 【av68676164(p51-p53)】虚拟内存管理(2)
  2. Window Server2012 修改远程桌面端口号
  3. vue中methods互相调用的方法
  4. NLP Github
  5. C#LeetCode刷题之#54-螺旋矩阵(Spiral Matrix)
  6. DRF基础操作流程
  7. 悄咪咪提高团队幸福感 &amp; Surprise!
  8. 手动SQL注入总结
  9. 线程池之Executor框架
  10. Linux权限之/etc/passwd文件