UVA - 490 Rotating Sentences
来源:互联网 发布:网络相关的专业 编辑:程序博客网 时间:2024/06/12 01:09
题目大意:输出旋转九十度后的字符串
解题思路:将字符串分别放在数组中,再依次输出
#include<cstdio>#include<cstring>int main() {int mark;int max = 0;char str[110][110];int number = 0;memset(str,' ',sizeof(str));while(gets(str[number])){int len = strlen(str[number]);max = max > len ? max:len;str[number][len] = ' ';number++;}for(int i = 0; i < max; i++) {for(int j = number - 1; j >= 0; j--)printf("%c",str[j][i]);printf("\n");}return 0;}
0 0
- Uva 490 Rotating Sentences
- UVa 490 - Rotating Sentences
- UVA-490-Rotating Sentences
- UVa 490 - Rotating Sentences
- UVA 490 - Rotating Sentences
- UVa 490 - Rotating Sentences
- UVa:490 - Rotating Sentences
- UVA 490 Rotating Sentences
- UVA:490 - Rotating Sentences
- UVA - 490 - Rotating Sentences
- UVa 490 - Rotating Sentences
- UVa 490 - Rotating Sentences
- UVa 490 Rotating sentences
- UVA - 490 Rotating Sentences
- UVA 490 Rotating Sentences
- UVA - 490 Rotating Sentences
- UVa 490 - Rotating Sentences
- UVA 490 Rotating Sentences
- linux 管道通信
- 黑马程序员————JAVA之交通灯管理系统
- 阿里上市不会真正冲击美互联网版图
- java查找匹配的文本
- WebBrowser设置为ie8模式
- UVA - 490 Rotating Sentences
- GDB的字符终端的替换工具——CGDB的使用与介绍
- 阿里巴巴上市首日上涨38% 市值2314亿美元
- 单词翻转
- 不断增加点
- 【c语言】三角形外心坐标
- JQuery触发元素事件
- NYOJ-最少乘法次数
- ui方面