zoj 1295 Reverse Text
来源:互联网 发布:苹果怎么快捷打开数据 编辑:程序博客网 时间:2024/05/01 22:10
啊哈...原来scanf("%s")和gets(s)不一样呃...
第一个遇到空格就认为是输入结束
第二个不是,可以输入英语句子叻~~
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){char s[80];int ncase;int len;int i;scanf("%d", &ncase);getchar();while(ncase--){gets(s); //gets可以接受空格.scanf(%s)遇到空格就认为是一个字符串输入完 len = strlen(s); //eg.for (i=len-1;i>=0;i--){printf("%c", s[i]);}printf("\n");}system("pause");return 0;}
- zoj 1295 Reverse Text
- zoj 1295 Reverse Text
- ZOJ 1295 Reverse Text
- ZOJ 1295 Reverse Text
- ZOJ 1295: Reverse Text
- ZOJ - 1295 - Reverse Text
- ZOJ 1295 - Reverse Text
- ZOJ - 1295 Reverse Text
- ZOJ Problem Set - 1295 Reverse Text
- ZOJ 1295: Reverse Text - cin.getline()
- ZOJ Problem Set - 1295 Reverse Text
- ZOJ 1295——Reverse Text
- ZOJ Problem Set - 1295 Reverse Text
- zoj 1295.Reverse Text
- 1295 Reverse Text
- Reverse Text
- Reverse Text
- Reverse Text
- BOOL 和 bool
- 2011-8-8 20:52:01
- Java中serialVersionUID的解释
- ctags+taglist+cscope+VIM for C development
- SQL Server,Oracle,DB2数据库SQL语句比较
- zoj 1295 Reverse Text
- hdu 1879 继续畅通工程
- Xcode 4: The selected run destination is not valid for this action
- LINUX安装JDK1.6攻略
- MySQL的Grant命令 — 这个比较全,比较细致,记录下来,以备后用
- 如何参与一个开源项目
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'cre
- CString截取字串方法
- POJ 2029 Get Many Persimmon Trees