易截截图软件、单文件、免安装、纯绿色、仅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程序的内存布局(memory layout)

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

ARM的 N、Z、C、V 标志位的解释

N  当用两个补码表示的带符号数进行运算时,N=1表示运算的结果为负数;N=0表示运算的结果为正数或零.
Z  Z=1表示运算的结果为零,Z=0表示运算的结果非零。
C  可以有4种方法设置C的值:
   加法运算(包括CMN):当运算结果产生了进位时(无符号数溢出),C=1,否则C=0。
   减法运 ......

wince背光调节 VC代码c文件

// backlightDlg.cpp : implementation file
//
#include "stdafx.h"
#include "backlight.h"
#include "backlightDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CbacklightDlg dialog
CbacklightDlg::CbacklightDlg(CWnd* pParent /*=NULL*/)
 : CDialog(CbacklightDlg::IDD, pParent)
{
  ......

呵呵!一个QT通过贴图实现的模拟时钟 c文件

#include "draw.h"
#include "ui_draw.h"
#include <QPixmap>
draw::draw(QWidget *parent)
    : QDialog(parent), ui(new Ui::draw)
{
    ui->setupUi(this);
//    this->setWindowFlags( Qt::FramelessWindowHint);
    ctrlPoint.s ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号