用C语言编一个欢迎画面

来源:百度知道 编辑:UC知道 时间:2024/06/07 04:07:18
急!!!

case里可以调用函数,做实现的功能!
#include <stdio.h>
void main()
{
char c;
while(1)
{
printf("please select:i/o/x\n");
c=getchar();
switch(c)
{
case 'i':
printf("input\n");break;
case 'o':
printf("output\n");break;
case 'x':
printf("exit\n");return;
}
}
}

#include <graphics.h>
#include <stdio.h>

char huan[]={
/* 12*12 '欢'字宋体 汉字字模 */
0x02,0x00,0xfa,0x00,0x13,0xe0,0x94,0x20,
0x55,0x40,0x21,0x00,0x21,0x00,0x52,0x80,
0x4a,0x80,0x84,0x40,0x18,0x20,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};

char ying[]={
/* 12*12 '迎'字宋体 汉字字模 */
0x42,0x00,0x2d,0xe0,0x09,0x20,0xc9,0x20,
0x49,0x20,0x49,0x20,0x4f,0x20,0x49,0x60,
0x41,0x00,0xb0,0x00,0x8f,0xe0,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x0