Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

qtʵÏÖµÄÒ»¸ö¶íÂÞ˹·½¿éµÄ³ÌÐò Ö÷´°¿ÚcÎļþ

//-----------------------------------------------------------------------------------------------------
//BY:yuyongbao
//QQ:673360056
//-----------------------------------------------------------------------------------------------------
#include "tetris.h"
Tetris::Tetris(QWidget *parent)
    : QDialog(parent), ui(new Ui::Tetris)
{
    ui->setupUi(this);
    gameInit();
    this->connect(ui->frame,SIGNAL(scoreChanged(int)),this,SLOT(drawScore(int)));
    this->connect(ui->frame,SIGNAL(nextTetrixChanged()),this,SLOT(nextTetrixChangedProc()));
    this->connect(ui->frame,SIGNAL(gameOver()),this,SLOT(gameEnd()));
}
Tetris::~Tetris()
{
    delete ui;
}
void Tetris::gameInit(void)
{
    m_curScore = 0;
    //×Ü·ÖÊýÒÔºóÓÉÎļþ¶ÁÈë
    m_totalScore = 0;
    m_level = 0;
    m_line = 0;
    m_bStart = FALSE;
    m_mute = FALSE;
    m_nextTetrisPos = QRect(120,160,4*PIXPERRECT,4*PIXPERRECT);
    m_scorePos = QRect(50,200,200,40);
    m_levelPos = QRect(50,240,200,40);
    m_linePos = QRect(50,280,200,40);
    //Ëæ»úÖÖ×Ó
    qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
    skinPath = "skins/";
}
void Tetris::gameStart(void)
{
     timer = new QTimer(this);
     connect(timer, SIGNAL(timeout()), this, SLOT(timePro()));
     //ÓÎÏ·µÈ¼¶Óëʱ¼äÖ®¼äµÄ¹ØÏµ
     timer->start(1600 - m_level * 300);
     //²úÉúµ±Ç°·½¿éºÍÏÂÒ»¸ö·½¿é
     ui->frame->curShape = (TetrixShape)(qrand()%7);
     ui->frame->nextShape = (TetrixShape)(qrand()%7);
   &n


Ïà¹ØÎĵµ£º

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 ......

¼ÓÈëcrimson.jar°üºó²»ÄÜʹÓÃC±êÇ©

 CrimsonÀ´×ÔÓÚSun¾èÔù¸øApacheµÄProjectXÏîÄ¿£¬XercesÀ´×ÔIBM¾èÔù¸øApacheµÄXML4JÏîÄ¿£¬½á¹ûXercesʤ³ö£¬³ÉÁËApache XMLС×éÈ«Á¦¿ª·¢µÄXML API£¬¶øCrimonÒѾ­Ôç¾Í²»×öÁË£¬Èç½ñXercesÃûÂúÌìÏ£¬µ½´¦¶¼ÊÇÔÚÓÃXerces DOMºÍSAX½âÎöÆ÷£¬Ö»ÓÐSun²»·þÆø£¬·ÇÒªÔÚJDK1.4ÀïÃæÊ¹ÓùýʱµÄCrimson£¬ÈÃÈ˸оõÏñÊÇÔÚ¶ÄÆøÒ»Ñù£¬ÕæÊÇÈà ......

C¿âº¯ÊýÖÐ×Ö·û´®´¦Àíº¯Êý¼¯ºÏ

bcmp
Ô­ÐÍ£ºextern int bcmp(const void *s1, const void *s2, int n);
Ó÷¨£º#include <string.h>
¹¦ÄÜ£º±È½Ï×Ö·û´®s1ºÍs2µÄǰn¸ö×Ö½ÚÊÇ·ñÏàµÈ
˵Ã÷£ºÈç¹ûs1=s2»òn=0Ôò·µ»ØÁ㣬·ñÔò·µ»Ø·ÇÁãÖµ¡£bcmp²»¼ì²éNULL¡£
bcopy   
Ô­ÐÍ£ºextern void bcopy(const void *src, void *dest, int n);
Ó÷ ......

S3C44B0 uart³ÌÐò¿â cÎļþ

 /* =========================================================================== */
/* Project:        s3c44b0_lib                         & ......

fat16Îļþϵͳ cÎļþ

/* =========================================================================== */
/* Project:        mp3 player                */
/* File:         & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ