题目
求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的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
- 1将溶质质量分数为百分之二十的100g氯化钠溶液的溶质质量分数变为原来的一半,需减少多少溶质?或加入多少
- 211.(2008年南通市)氮肥、磷肥、钾肥是农业生产中最主要的化肥,用简便方法区别三种化肥,
- 3"望着他(她)不再年轻的背影渐渐模糊在夕阳的余晖里,我不禁惭愧地流下了眼泪."
- 4二元一次方程中,x可以等于y吗
- 5卧薪尝胆的薪是指?
- 6a的3次方与a的平方 2分之1a的平方与2a的平方 2xy与2x
- 7文言文学奕用的是什么写作手法
- 8应用一元一次方程解决实际问题一般有哪些过程? 1、 2、 3、 4、 5、 6、检验.
- 9he eats a hamburger for lunch 对 lunch进行提问
- 10We have to _ at school on time.
热门考点
- 1老师让我们每天按时完成家庭作业.用英语怎么翻译
- 2设A.B均为n阶方阵,则下列结论正确的是 A.若A或B可逆,则必有AB可逆 B.若A或B不可逆,则必有AB可逆
- 3在7、11、和22这三个数中,质数有_,这三个数中的_和_是互质数,_和_也是互质数.
- 4.abc是一个三位数,由a,b,c三个数码组成的另外五个三位数之和等于2743.求三位数.abc.
- 5在一个长方形中画一个三角形,使三角形的面积是长方形面积的1/3
- 6四边形ABCD为圆的内界四边形,对角线AC和BD交于E,延长DA,CB交于F,角CAD=60度,DC=DE,求证A为三角形BEF的外心
- 7如何用消元法解二元一次方程组
- 8假如可以再活一次(议论文) 追加100分
- 9用丝带捆扎一种礼品盒需要准备22分米长的丝带,已知接头处用去了20厘米丝带.礼品盒长30厘米,
- 10Suppose f:A to B is function.C,D are subsets of A then C contained in D implies f(C) contained in f(