#include <iostream>
#include <string>
using namespace std;
char chara[26][6][6]={{" * "," * * ","*****","* *","* *",},//a /*三位数组*/
{"**** ","* *","**** ","* *","**** ",},//b
{" ****","* ","* ","* "," ****",},//c
{"**** ","* *","* *","* *","**** ",},//d
{"*****","* ","**** ","* ","*****",},//e
{"*****","* ","*****","* ","* ",},//f
{" ****","* *","* **","* *"," ****",},//g
{"* *","* *","*****","* *","* *",},//h
{" *** "," * "," * "," * "," *** ",},//i
{" *"," *"," *","* *","*****",},//j
{"* *","* * ","*** ","* * ","* *",},//k
{"* ","* ","* ","* ","*****",},//l
{"* *","** **","* * *","* *","* *",},//m
{"* *","** *","* *","* * *","* *",},//n
{" *** ","* *","* *","* *"," *** ",},//o
{"**** ","* *","**** ","* ","* ",},//p
{" *** ","* *","* *","* **"," ****",},//q
{"**** ","* *","**** ","* * ","* *",},//r
{" ****","* "," ****"," *","**** ",},//s
{"*****"," * "," * "," * "," * ",},//t
{"* *","* *","* *","* *"," *** ",},//u
{"* *","* *","* *"," * * "," * ",},//v
{"* *","* * *","* * *","* * *"," * * ",},//w
{"* *"," * * "," * "," * * ","* *",},//x
{"* *","* *"," * * "," * "," * ",},//y
{"*****"," * "," * "," * ","*****",}};//z
void main()
{
char s[40]; /*定义的字符数组 */
printf("Please input words:");
gets(s); /*键盘输入字符串*/
for(int i=0;i<5;i++)
{
for(int j=0;j<strlen(s);j++) /*取输入的单词的长度*/
{
printf(chara[s[j]-'a'][i]); /*显示相应的字母对应的*和空格*/
printf(" ");
}
printf("\n");
}
}