题目
求c高手帮忙,帮我分析一下下面的程序段,最好是每一行的含义都解释一下,先给20分,回答得好再加!
#ifndef _DFS_BILLSVR_WORKER_H_
#define _DFS_BILLSVR_WORKER_H_
#include
#include
#include
#include
#include
#include
#include
#include
// billing functions declaration
void printAttributes(struct ipdrStringArray * Schema,
struct ipdrStringArray * Attributes);
ipdrStatus handleRecord(void *CD, struct ipdrRecord * Rec);
class dfsWorker
{
public:
dfsWorker();
~dfsWorker();
int dfInit(dfsModuleInitStruct *init);
// monitor the Dispatcher processes, called from outside
int dfLoopBody();
/* 3 choices for EventHandle output:
1: no return;
2: put into internal Cache for later answer
3: put into the direct answer queue */
int dfEventHandler(dfEventStruct *event);
private:
ipdrDocumentHandler *m_DocHandler;
};
#endif
#ifndef _DFS_BILLSVR_WORKER_H_
#define _DFS_BILLSVR_WORKER_H_
#include
#include
#include
#include
#include
#include
#include
#include
// billing functions declaration
void printAttributes(struct ipdrStringArray * Schema,
struct ipdrStringArray * Attributes);
ipdrStatus handleRecord(void *CD, struct ipdrRecord * Rec);
class dfsWorker
{
public:
dfsWorker();
~dfsWorker();
int dfInit(dfsModuleInitStruct *init);
// monitor the Dispatcher processes, called from outside
int dfLoopBody();
/* 3 choices for EventHandle output:
1: no return;
2: put into internal Cache for later answer
3: put into the direct answer queue */
int dfEventHandler(dfEventStruct *event);
private:
ipdrDocumentHandler *m_DocHandler;
};
#endif
提问时间:2021-01-31
答案
从一开始到最后就是一个条件编译命令(C语言预处理命令):#ifndef 宏名语句段#endif作用:如果再此之前没有定义这样的宏名,则编译语句段;即第一行:#ifndef _DFS_BILLSVR_WORKER_H_,如果定义了宏名 DFS_BILLSVR_WOR...
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点
- 1The TV set Mr.Smith had had fiexed went wrong again.怎么理解和翻译?
- 2a small city in China where is beautiful 这句话错了吗?
- 3XX人因为没有自信、不勇于挑战……而失败的故事/例子,中英对照【快!】
- 4磁感线都是从北极出来回到南极这句话为什么是错的
- 5“我请他们随便喝点咖啡”用英语翻译
- 6如何根据翻译过来的汉语词意判断是 及物动词 还是 不及物动词.不要那种Vt 后可以直接跟宾语#¥%···的那类答案 我不需要!
- 7找规律1,3,3,5,7,9,13,15后两个数是什么?
- 81.Take some tomato sauce and add __to the bread.A.it B.them C.they
- 9以自私为对象,仿照下列句子再写两个句子,使之构成排比句:自私是一面镜子,生活在镜子里永远只会看到自己
- 10过抛物线y²=4x的焦点作两条互相垂直的弦AB与CD,则|AB|+|CD|的最小值为