c语言编程变色,【图片】(原创)用纯C变了个变色输出字符的程序。。。【c语言吧】_百度贴吧...
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
#include
#include
#include
main()
{
char c;
int i,j,k,l,m,n,o;
int x,y;
char c1;
int a,b,d,e;
x=35;
y=8;
textcolor(13);
gotoxy(35,10),cprintf("photoshop2014");
textcolor(11);
gotoxy(20,11);cprintf(" My name is zhou cheng qiang");
gotoxy(20,12);cprintf("I very like The C prograunmming language");
gotoxy(20,13);cprintf(" I think it*s very interting");
gotoxy(20,14);cprintf(" My QQ is 746511902");
gotoxy(20,15);cprintf(" I want have a lot of friends");
for(j=10;j>=0;j--)
{ textcolor(14);
gotoxy(60,20);cprintf("Please wait %ds ",j);
sleep(1);
}
clrscr();
gotoxy(1,10);
for(i=0;i<=50;i++)
{
delay(100);
gotoxy(i,10);
cprintf("%c",219);
gotoxy(i+2,10);
cprintf(" %c%d",37,i*2);
}
sleep(1);
clrscr();
textcolor(WHITE);
for(a=0;a<=53;a++)
{
gotoxy(21+a,3);cprintf("_");
}
for(a=0;a<=55;a++)
{
gotoxy(20+a,23);cprintf("_");
}
for(a=0;a<=19;a++)
{
gotoxy(20,4+a);cprintf("|");
}
for(a=0;a<=19;a++)
{
gotoxy(75,4+a);cprintf("|");
}
textcolor(11);
gotoxy(40,2),cprintf("photoshop2014");
textcolor(14);
gotoxy(1,3);cprintf("Use color:");
textcolor(10);
gotoxy(1,4),cprintf("1:LIGHTGREEN");
textcolor(11);
gotoxy(1,5),cprintf("2:LIGHTCYAN");
textcolor(12);
gotoxy(1,6),cprintf("3:LIGHTRED");
textcolor(13);
gotoxy(1,7);cprintf("4:LIGHTMAGENTA");
textcolor(14);
gotoxy(1,8);cprintf("5:YELLOW");
textcolor(15);
gotoxy(1,9);cprintf("6:WHITE");
textcolor(7);
gotoxy(1,10);cprintf("7:LIGHTGAY");
textcolor(4);
gotoxy(1,11);cprintf("8:RED");
textcolor(2);
gotoxy(1,12);cprintf("9:GREEN");
textcolor(14);
gotoxy(65,25);cprintf("Exit input Esc\n");
gotoxy(1,25);cprintf("\rClrscr input 0");
textcolor(15);
gotoxy(35,8);
for(;;)
{
lab:
if((x!=21&&x!=74)&&(y!=4&&y!=22))
{
c=getch();
if(c==72)
y--;
else if(c==80)
y++;
else if(c==75)
x--;
else if(c==77)
x++;
else if(c>=32&&c<=47||c>=97&&c<=126||c>=58&&c<=64)
cprintf("%c",c),x++;
else if(c>=65&&c<=71||c>=73&&c<=74||c>=78&&c<=79||c>=81&&c<96||c==76)
cprintf("%c",c),x++;
else if(c==13)
x=21,y++;
else if(c==8)
cprintf(" "),x--;
else if(c==49)
textcolor(10);
else if(c==50)
textcolor(11);
else if(c==51)
textcolor(12);
else if(c==52)
textcolor(13);
else if(c==53)
textcolor(14);
else if(c==54)
textcolor(15);
else if(c==55)
textcolor(7);
else if(c==56)
textcolor(4);
else if(c==57)
textcolor(2);
else if(c==48)
{
loop:
clrscr();
textcolor(11);
gotoxy(40,2),cprintf("photoshop2014");
textcolor(14);
gotoxy(1,3);cprintf("Use color:");
textcolor(10);
gotoxy(1,4),cprintf("1:LIGHTGREEN");
textcolor(11);
gotoxy(1,5),cprintf("2:LIGHTCYAN");
textcolor(12);
gotoxy(1,6),cprintf("3:LIGHTRED");
textcolor(13);
gotoxy(1,7);cprintf("4:LIGHTMAGENTA");
textcolor(14);
gotoxy(1,8);cprintf("5:YELLOW");
textcolor(15);
gotoxy(1,9);cprintf("6:WHITE");
textcolor(7);
gotoxy(1,10);cprintf("7:LIGHTGAY");
textcolor(4);
gotoxy(1,11);cprintf("8:RED");
textcolor(2);
gotoxy(1,12);cprintf("9:GREEN");
textcolor(14);
gotoxy(65,25);cprintf("Exit input Esc");
textcolor(WHITE);
for(a=0;a<=53;a++)
{
gotoxy(21+a,3);cprintf("_");
}
for(a=0;a<=55;a++)
{
gotoxy(20+a,23);cprintf("_");
}
for(a=0;a<=19;a++)
{
gotoxy(20,4+a);cprintf("|");
}
for(a=0;a<=19;a++)
{
gotoxy(75,4+a);cprintf("|");
}
}
else if(c==27)
{
textcolor(2);
gotoxy(35,10),cprintf("really Exit?Y or N:");
c1=getchar();
if(c1==121)
{
clrscr();
textcolor(LIGHTMAGENTA);
gotoxy(40,8);cprintf("Exiting");
for(k=0;k<=5;k++)
{
sleep(1);
cprintf(".");
}
sleep(1);
exit();
}
if(c1==110)
goto loop;
}
gotoxy(x,y);
}
else if(x==21)
x++;
else if(x==74)
x--;
else if(y==4)
y++;
else if(y==22)
{
y--;
}
goto lab;
}
}
c语言编程变色,【图片】(原创)用纯C变了个变色输出字符的程序。。。【c语言吧】_百度贴吧...相关推荐
- C语言编程>第十六周 ⑦ s是全部由小写字母字符和空格字符组成的字符串,由len传入字符串的长度,请补充fun函数,该函数的功能是:统计字符串s中的单词数,结果由变量len传回。
例题:s是全部由小写字母字符和空格字符组成的字符串,由len传入字符串的长度,请补充fun函数,该函数的功能是:统计字符串s中的单词数,结果由变量len传回.每个单词之间都由空格隔开,并且字符串s开始 ...
- 智能机器人c语言编程,【图片】教你快速制作一个简单的人工智能机器人(懂编程的人进来看)【科幻吧】_百度贴吧...
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 教你快速制作一个简单的人工智能机器人(懂编程的人进来看) 本文我首发于"人工智能吧",叫做<机器人理解人类语言>和< ...
- c语言编程学生对老师的评教系统,记王宇颖教授和她的“C语言”教学团队
哈工大报讯(刘培香/文) 在计算机学院举行的"我身边的马祖光"征文中,有好几位同学不约而同地写到了同一位老师,字里行间流露的是深深的尊敬和爱戴――"她的每一节课都讲得十分 ...
- c语言 变色程序,【图片】(原创)用纯C变了个变色输出字符的程序。。。【c语言吧】_百度贴吧...
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 #include #include #include main() { char c; int i,j,k,l,m,n,o; int x,y; char ...
- c语言c1变成e并输出,【图片】(原创)用纯C变了个变色输出字符的程序。。。【c语言吧】_百度贴吧...
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 #include #include #include main() { char c; int i,j,k,l,m,n,o; int x,y; char ...
- c语言如何一直变换颜色,【图片】(原创)用纯C变了个变色输出字符的程序。。。【c语言吧】_百度贴吧...
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 #include #include #include main() { char c; int i,j,k,l,m,n,o; int x,y; char ...
- C语言 printf 变色,【图片】(原创)用纯C变了个变色输出字符的程序。。。【c语言吧】_百度贴吧...
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 #include #include #include main() { char c; int i,j,k,l,m,n,o; int x,y; char ...
- c语言编程将图片上下翻转,C语言实现矩阵翻转(上下翻转、左右翻转)
C语言实现矩阵翻转 上下翻转与左右翻转 实例代码: #include void matrix (int m, int n, int t) { int arr[m][n]; int i, j, k; f ...
- i是j的倍数c语言编程,【图片】【编程!】记录我C语言的一步步【极度恐慌漫画吧】_百度贴吧...
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 #include #include // 函数:帮派发展(ITEM)void into_effect_3( object org ){ object *u ...
最新文章
- python对笔记本电脑的要求-学Python买什么笔记本电脑?
- Android提高十六篇之使用NDK把彩图转换灰度图
- ZOJ - 1450 Minimal Circle HDU - 3007 Buried memory 最小圆覆盖模板 【随机函数】【增量法】
- ajax csrf php,JQueqy Ajax的使用(POST\GET请求 csrf_token)
- 【codevs2098】【Tyvj1625】化工厂装箱员,煞笔的人打煞笔的DP
- c语言多线程转python多线程,一个Socket能否被多线程写入(转)
- mats测试所有显存命令_RGBLCD液晶屏层叠显示测试
- VC++多线程工作笔记0001---认识与创建线程
- 多年心路历程见证从技术小白到收获BAT等大厂研发offer,分享一些经验和感悟...
- c语言do while语句用法6,c语言do while的用法
- 【Oracle】分区表中索引状态为N/A
- luogu题解 UVA11992 【Fast Matrix Operations】
- 重置SQLSERVER表的自增列,让自增列重新计数【转】
- 多易教育大数据课程学费调整通知
- 基本农田卫星地图查询_水经注万能地图下载器软件主界面功能说明
- 什么是网络操作系统?网络操作系统具有哪些基本功能?
- Oracle数据库基础练习(一):Oracle数据库查询操作练习81题
- highcharts在Vue项目中使用去水印方法
- 抱歉,当前存在网络问题或服务器繁忙错误代码:20003问题解决方法
- 数据处理第3部分:选择行的基本和高级的方法
热门文章
- python 实例方法 类方法_Python实例方法 静态方法 类方法
- 杭电 -- 2553 N皇后问题
- CSS之after与before的content 和 attr 配合使用
- 单词 (Play on Words UVA - 10129 )
- HDU 2256(矩阵快速幂)
- day 5 名片管理系统-文件版
- 在WPF中自定义你的绘制(二)
- WPF:在XmlDataProvider上使用主-从绑定(Master-Detail Binding)
- [转载] python 列表List中index函数的坑
- [转载] kotlin 字符串_Kotlin基本类型字符串