易截截图软件、单文件、免安装、纯绿色、仅160KB

qt实现的一个俄罗斯方块的程序 方块区c文件

//-----------------------------------------------------------------------------------------------------
//BY:yuyongbao
//QQ:673360056
//-----------------------------------------------------------------------------------------------------
#include "tetrixboard.h"
/*  ZShape ,          //方块基本形状0-6
    SShape,
    LineShape,
    TShape,
    SquareShape,
    LShape,
    MirroredLShape,
    ZRot1Shape,       //以下是方块翻转后的形状7-19
    SRot1Shape,
    LineRot1Shape,
    TRot1Shape,
    TRot2Shape,
    TRot3Shape,
    SquareRot1Shape,
    LRot1Shape,
    LRot2Shape,
    LRot3Shape,
    MirroredLRot1Shape,
    MirroredLRot2Shape,
    MirroredLRot3Shape
*/
int TetrixCoordsTable[19][16] = {
  // 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6   1-16从左到右,从上到下
    {1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0}, //ZShape
    {0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0}, //SShape
    {1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0}, //LineShape
    {0,1,0,0,1,1,1,0,0,0,0,0,0,0,0,0}, //TShape
    {0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0}, //SquareShape
    {0,0,1,0,0,0,1,0,0,1,1,0,0,0,0,0}, //LShape
    {0,1,0,0,0,1,0,0,0,1,1,0,0,0,0,0}, //MirroredLShape
    {0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0}, //ZRot1Shape
    {0,1,0,0,0,1,1,0,0,0,1,0,0,0,0,0}, //SRot1Shape
    {0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0}, //LineRot1Shape
    {0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0}, //TRot1Shape
    {1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0}, //TRot2Shape
    {0


相关文档:

c 语言获取系统时间和世界各时区时间

The meaning of each is:
MemberMeaningRange
tm_sec
seconds after the minute
0-61*
tm_min
minutes after the hour
0-59
tm_hour
hours since midnight
0-23
tm_mday
day of the month
1-31
tm_mon
months since January
0-11
tm_year
years since 1900
tm_wday
days since Sunday
0-6
tm_yday
d ......

一个C程序的内存布局(memory layout)

一个C程序的内存布局(memory layout)
2009-09-09 15:19
一个C程序一直以来都是由以下5个段(pieces)组成:
代码段(text segment):存放CPU执行的机器指令(machine instructions)。通常情况下,代码段是可共享的,使其可共享的目的是对于频繁被执行的程序,只需要在内存中有一份拷贝即可,比如文本编辑器(text editors),C ......

C/C++ 笔试、面试题目大汇总

1.求下面函数的返回值(微软)
int func(x)
{
    int countx = 0;
    while(x)
    {
          countx ++;
          x = x&(x-1);
   &n ......

C/C++程序中结构体字节流的网络传输

 经常需要在程序中将远程传来的字节流进行结构化,或者将结构化的数据变成字节流传给远程主机。在C/C++程序中,结构化数据通常用结构体来组织,结构体也能够方便的转换为字节流,因此结构化的数据传输本不该成为问题,但在VC或GCC的默认设置下编译出的程序,却有一个值得注意的问题——结构体的对齐。  ......

红外接收(nec)稳定程序 c文件

 /* =========================================================================== */
/* Project:        s3c44b0_lib                         & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号