日韩国产欧美精品一区二区三区,亚洲男女自偷自拍图片另类,亚洲欧美久久久,亚洲国产成人一区


曙海教育集團(tuán)論壇開發(fā)語言培訓(xùn)專區(qū)C語言開發(fā) → 沒有見過的c語言用法,求救


  共有10478人關(guān)注過本帖樹形打印

主題:沒有見過的c語言用法,求救

美女呀,離線,留言給我吧!
wangxinxin
  1樓 個(gè)性首頁 | 博客 | 信息 | 搜索 | 郵箱 | 主頁 | UC


加好友 發(fā)短信
等級(jí):青蜂俠 帖子:1393 積分:14038 威望:0 精華:0 注冊:2010-11-12 11:08:23
沒有見過的c語言用法,求救  發(fā)帖心情 Post By:2010-12-10 11:39:46

//-------------------------------------------------------------------------------------
unsigned char IfInterTimeOK(tagInterTime * ptime) {
        if(ptime->ucDelay == 0) return 0;
    ptime->ucCount = (ptime->ucCount) + 1;
    if(ptime->ucCount >= ptime->ucDelay) {
            ptime->ucCount = 0;
        return 1;
    }
    return 0;
}
//-----------------------------------------------------------------
typedef struct {
        unsigned char ucDelay, ucCount;
}tagInterTime;                                                                        // Control the interface control time
unsigned char IfInterTimeOK(tagInterTime * ptime);// 1:Action OK
//---------------------------------------------------------------------------------
#define __INTERTIME_DECL(x, y)        SUBLIB_EXT tagInterTime g_it##x;  
#define __IT_START(x, y)                (g_it##x##.ucDelay = y, g_it##x##.ucCount = y)
#define __IT_STOP(x, y)                        g_it##x##.ucDelay = 0
#define __IT_OK(x, y)                        IfInterTimeOK(&g_it##x)
//------------------------------------------------------------------------------
#define IT_DECL(x)                                __INTERTIME_DECL(x)
#define IT_START(x)                                __IT_START(x)
#define IT_STOP(x)                                __IT_STOP(x)
#define IT_OK(x)                                __IT_OK(x)

#define AAA                        A, 25

下面這是用法,不知道是什么意思?
IT_START(AAA);   
if(IT_OK(AAA)) IT_START(AAA);
IT_STOP(AAA);
忘c(diǎn)語言高手指教一下

支持(0中立(0反對(duì)(0單帖管理 | 引用 | 回復(fù) 回到頂部

返回版面帖子列表

沒有見過的c語言用法,求救








簽名
主站蜘蛛池模板: 聂荣县| 岑巩县| 丰都县| 建宁县| 富宁县| 瑞金市| 清远市| 射洪县| 柞水县| 南郑县| 永川市| 芜湖县| 静乐县| 比如县| 长丰县| 阿坝县| 商都县| 明星| 邵武市| 眉山市| 遂宁市| 新蔡县| 新巴尔虎左旗| 原平市| 长寿区| 平阳县| 青海省| 喀什市| 合山市| 遵义市| 神池县| 即墨市| 全州县| 临沂市| 沂水县| 华安县| 西乌| 墨竹工卡县| 长子县| 教育| 大悟县|