俄罗斯C语言经典代码(国外英文资料).doc

俄罗斯C语言经典代码(国外英文资料).doc

  1. 1、本文档共34页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
俄罗斯C语言经典代码(国外英文资料)

俄罗斯C语言经典代码(国外英文资料) # include DOS. H # include conio. H # include graphics. H # include stdlib. H # ifdef __cplusplus # define __CPPARGS... # the else # define __CPPARGS # endif # define MINBOXSIZE 20 / * the size of the smallest square * / # define BGCOLOR 6 / * background color * / # define GX 200 # define 10 GY The # define SJNUM 10000 / * whenever a player hits 10,000 levels plus one / * key code * / # define VK_LEFT 0x4b00 # define VK_RIGHT 0 x4d00 Pound sign define VK_DOWN 0x5000 Pound sign define VK_UP 0x4800 Pound sign define VK_HOME 0x4700 # define VK_END 0x4f00 # define VK_SPACE 0 x3920 Pound sign define VK_ESC 0x011b # define VK_ENTER 0 x1c0d / * define the direction of tetris (I define him 4) * / # define F_DONG 0 # define F_NAN 1 # define F_XI 2 # define F_BEI 3 # define NEXTCOL 20 / * the vertical coordinate of the next block. * / # define NEXTROW 12 / * the cross of the next block is from the standard * / # define MAXROW 14 / * game screen size * / # define MAXCOL 20 # define SCCOL 50 / * the relative position of the large screen of a game screen # define SCROW 30 # define X_Z 0 / * defines the square of the block (eight kinds) * / # define X_REZ 1 # define X_7 2 # define X_RE7 3 # define X_I 4 # define X_REI 5 # define X_TIAN 6 # define X_T 7 Int gril [22]. / * game screen coordinates * / Int col = 1, row = 7; / * the horizontal axis of the current block * / Int boxfx = 0, boxgs = 0; / * the shape and direction of the temple block Int nextboxfx nextboxgs, maxcol = 22; / * the shape and direction of the next square Int minboxcolor nextminboxcolor; Int num = 0; / the game is divided by Int DJ = 0, gamedj [10] = {18, 16, 16, 14, 12, 6, 4, 2, 1}; / * game class * / Struct all { Int x, y; Int fangxiang; Int gesu. }; / * the following USES a 3-dimensional array to record the initial shape and direction of the square Int boxstr [8] [4] [4] = {{{{{ {0, 0, 0, 0, {0, 0, 0, 0, {0, 1, 1, 0}, {0, 0, 1, 1}, { {0, 0, 0, 0, {0, 0, 0, 0, {0, 0, 1, 1}, {0, 1, 1

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档