模拟

#include <iostream>
#include <string>
using namespace std; char numbers[][][] = {
{
' ', '-', ' ',
'|', ' ', '|',
' ', ' ', ' ',
'|', ' ', '|',
' ', '-', ' ',
},
{
' ', ' ', ' ',
' ', ' ', '|',
' ', ' ', ' ',
' ', ' ', '|',
' ', ' ', ' ',
},
{
' ', '-', ' ',
' ', ' ', '|',
' ', '-', ' ',
'|', ' ', ' ',
' ', '-', ' ',
},
{
' ', '-', ' ',
' ', ' ', '|',
' ', '-', ' ',
' ', ' ', '|',
' ', '-', ' ',
},
{
' ', ' ', ' ',
'|', ' ', '|',
' ', '-', ' ',
' ', ' ', '|',
' ', ' ', ' ',
},
{
' ', '-', ' ',
'|', ' ', ' ',
' ', '-', ' ',
' ', ' ', '|',
' ', '-', ' ',
},
{
' ', '-', ' ',
'|', ' ', ' ',
' ', '-', ' ',
'|', ' ', '|',
' ', '-', ' ',
},
{
' ', '-', ' ',
' ', ' ', '|',
' ', ' ', ' ',
' ', ' ', '|',
' ', ' ', ' ',
},
{
' ', '-', ' ',
'|', ' ', '|',
' ', '-', ' ',
'|', ' ', '|',
' ', '-', ' ',
},
{
' ', '-', ' ',
'|', ' ', '|',
' ', '-', ' ',
' ', ' ', '|',
' ', '-', ' ',
}
};
int size; void print(int line, char *se)
{
int i, j; for (i = ; i < strlen(se); i++)
{
cout << numbers[se[i] - ''][line][];
for (j = ; j < size; j++)
cout << numbers[se[i] - ''][line][];
cout << numbers[se[i] - ''][line][];
cout << " ";
}
cout << endl;
} void work()
{
char se[];
int i; cin >> se;
print(, se);
for (i = ; i < size; i++)
print(, se);
print(, se);
for (i = ; i < size; i++)
print(, se);
print(, se);
cout << endl;
} int main()
{
//freopen("t.txt", "r", stdin);
while (cin >> size && size != )
work();
return ;
}

poj1102的更多相关文章

随机推荐

  1. 洛谷 P3942 将军令 解题报告

    P3942 将军令 题目描述 又想起了四月. 如果不是省选,大家大概不会这么轻易地分道扬镳吧? 只见一个又一个昔日的队友离开了机房. 凭君莫话封侯事,一将功成万骨枯. 梦里,小\(F\)成了一个给将军 ...

  2. Linux内核分析实验六

    Linux内核分析实验六 进程控制块PCB——task_struct(进程描述符) 为了管理进程,内核必须对每个进程进行清晰的描述,进程描述符提供了内核所需了解的进程信息. struct task_s ...

  3. 在OpenShift上托管web.py应用

    一.背景 最近在学习web.py,跟随官网的cookbook和code examples一路敲敲打打,在本地访问了无数遍http://0.0.0.0:8080/,也算是对web.py有了基本的认识.为 ...

  4. Webpack + React 开发 03 props

    React中组件的用法与原生的 HTML 标签完全一致,可以任意加入属性,比如 <HelloWorld name="John"> ,就是 HelloWorld 组件加入 ...

  5. opncv视频资料

    链接: http://pan.baidu.com/s/1i37nXSL 密码: 3xnd这一套opncv资料包括视频和pdf资料

  6. NO.7day系统监控,硬盘分区和文件系统管理

    系统监控,硬盘分区和文件系统管理 1.系统监控 top命令:top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.默认每5秒刷新屏幕数 ...

  7. ROI POOLING 介绍

    转自 https://blog.csdn.net/gbyy42299/article/details/80352418 Faster rcnn的整体构架: 训练的大致过程: 1.图片先缩放到MxN的尺 ...

  8. svn服务器搭建(windows)

    转载:https://blog.csdn.net/daobantutu/article/details/60467185 本教程会从最基本的下载安装到上传代码,下载代码这条线来详细讲述如何完成SVN服 ...

  9. pthread动态库命名规则

    Library naming-------------- Because the library is being built using various exceptionhandling sche ...

  10. [USACO5.3]量取牛奶Milk Measuring

    https://daniu.luogu.org/problemnew/show/P2744 滚动数组压去第一维:前i种木桶 f[j] 量取体积j最少需要几种木桶 g[j]  体积j的最优解是否使用了第 ...