发布我的第一个可视化程序~~
pascal吧
全部回复
仅看楼主
level 12
一楼防吞
2013年06月22日 08点06分 1
level 12
2013年06月22日 08点06分 2
level 12
用法是用方向键,可以让红色方块上下左右移动,不会超格,并且有动画效果,可跳过动画,资源占用比较少(因为不是死循环刷屏),具体的自己去程序里看看吧(PS:最好用快捷方式打开哦~亲,直接全屏比较帅)。
2013年06月22日 08点06分 3
level 12
源码你们说要不要开呢?[憧憬]
2013年06月22日 08点06分 4
level 12
2013年06月22日 09点06分 6
level 9
2013年06月22日 09点06分 7
看了之后感觉怎么样
2013年06月22日 13点06分
回复 zty61211 :[拍砖]。。。。。
2013年06月22日 13点06分
非常好,谢谢楼主了!!![呵呵]
2013年06月22日 13点06分
回复 黎素芳F辉 :为什么说谢谢
2013年06月22日 14点06分
level 13
[]
2013年06月22日 10点06分 8
有看么
2013年06月22日 13点06分
回复 zty61211 :网速不好不想下
2013年06月23日 01点06分
level 12
算了
不发源码没人看
源码在此
program color_square; uses crt,mouse; var i,j,k:longint; x,y:integer; tchar:char; stpd,dhpd:boolean; const square_long=18;square_wide=8; square:array [1..square_wide,1..square_long] of char = (('?,'-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','?), ('?,' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','?), ('?,' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','?), ('?,' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','?), ('?,' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','?), ('?,' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','?), ('?,' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','?), ('?,'-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','?)); procedure chushihua; begin clrscr; highvideo; cursoroff; textcolor(15); gotoxy(1,1); textbackground(0); clrscr; end; procedure drSQR(tx,ty:integer); var i_wrsqr,j_wrsqr:byte; begin for i_wrsqr:=1 to square_wide do begin for j_wrsqr:=1 to square_long do begin gotoxy(tx+j_wrsqr-1,ty+i_wrsqr-1); write(square[i_wrsqr,j_wrsqr]); if stpd=true then delay(1); if dhpd=true then begin delay(5); keypressed; if keypressed=true then dhpd:=false; end; end; end; end; procedure drmap(zbx,zby:integer); begin for i:=1 to 3 do begin for j:=1 to 4 do begin if not((zbx=j) and (zby=i)) then begin textbackground(3); drsqr((j-1)*19+1,(i-1)*8+1); end else continue; end; end; dhpd:=true; textbackground(4); drsqr((zbx-1)*19+1,(zby-1)*8+1); setmousexy((zbx-1)*19+1,(zby-1)*8+1); showmouse; dhpd:=false; end; procedure start; begin x:=1;y:=1; stpd:=true; drmap(x,y); stpd:=false; while true do begin keypressed; if keypressed=true then begin readkey; tchar:=readkey; if tchar in [chr(80),chr(72),chr(75),chr(77),chr(27),chr(3)] then begin case tchar of chr(72):if y>1 then dec(y); chr(80):if y<3 then inc(y); chr(75):if x>1 then dec(x); chr(77):if x<4 then inc(x); chr(27):halt; chr(3):halt; end; drmap(x,y); end; end; end; end; Begin {main} chushihua; start; end.
2013年06月22日 13点06分 9
强大。。。
2013年06月23日 01点06分
为毛程序有语法错误啊??//小尾巴小尾巴小尾巴小小小
2013年06月23日 03点06分
应该不会错吧?
2013年06月23日 12点06分
呃,好吧,浏览器里的那个问号出问题了。
2013年06月23日 12点06分
level 9
看不懂。。。真是高端洋气上档次啊。。。
2013年06月22日 13点06分 11
[哈哈]
2013年06月22日 14点06分
level 12
忘了说,按esc或者ctrl+c退出
2013年06月22日 14点06分 12
level 8
(('?,'-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','?), ('?,' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ,'?), ('?,, ('?,' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','?), ('?,' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','?), ('?,'-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','?))是干什么的?话说这个程序有神马意义,感觉贴吧里很多诶,只是沉了而已
2013年06月22日 16点06分 13
这个是画正方形
2013年06月23日 00点06分
如果在pascal的编码下会变成正方形的
2013年06月23日 00点06分
其实这是我第一次用crt,留个纪念。。
2013年06月23日 00点06分
level 11
个人认为可视化还是用Graph比较好一点
2013年06月23日 01点06分 14
膜拜神牛,只是因为想学学crt,慢慢来嘛,graph还要学更多。。
2013年06月23日 12点06分
level 8
我连单元格都没用过,那么多函数,我连普通的标准函数都记不住,跟别说crt单元了。还是为OI奋斗吧
2013年06月23日 03点06分 15
。。。。,这个crt的函数真心不多,但真心有用
2013年06月23日 12点06分
没多少啊
2013年06月30日 10点06分
level 4
……我一直好在意那个.7z的文件结尾啊魂淡!而且因为是解压到桌面的关系金山还疯狂的误报木马呢囧。
快捷方式运行的话一开始有全屏,但是很快就弹出了叫【16位MS-DOS子系统】的窗口宣称程序文件名无效请求检测pif,这个是啥意思0u0?
直接运行exe没有问题哦,麻烦下楼主解答我的问题,程序好评点赞。
2013年06月30日 06点06分 17
你家什么系统啊
2013年06月30日 10点06分
7z的压缩率比较高而且不易损坏,还能文件名加密,固实压缩,比较自由
2013年06月30日 10点06分
回复 zty61211 :win32XP吧……
2013年06月30日 10点06分
回复 zty61211 :一看到这个就想起“好压7Z压缩文件”这样的东西而已\("▔□▔)/
2013年06月30日 10点06分
level 8
其实可视化的话做delphi 吧,反正pascal学Delphi很简单的,我会了Pascal之后2个月就会Delphi了(当然是简单的东西了)
2013年07月02日 14点07分 18
level 11
好坟必挖
2015年09月20日 03点09分 19
1