1.有一个函数Strcpy, 描述如下,请根据说明写出该函数的定义
Char *strcpy(char *strDestination, const char *strSource);
Return Value:the function returns the destination string No return value is reserved to indicate an
Error;
Parameters:strDestination Ddstination string; strSourse Null-terminated source string
Remarks: the strcpy function copies strSource, including the terminating null character to the location specified by strDestination NO overflow checking is performed when strings are copied or appended
2下面这题什么意思啊
MapMode
MM_HIENGLISH Each logical unit is converted to 0.001 inc.Positive x is to the right; positive y is up
MM_HIMETRIC Each logical unit is converted to 0.01 millimeter. Positive x is to the right;positive y is up
MM_LOENGLISH Each logical unit is converted to 0.01 inch. Positive x is to the right; positive y is up
MM_LOMETRIC Each logical unit is converted to 0.1millimeter. Positive x is to the right; positive y is up
MM_TEXT Each logical unit is converted to 1 device pixel, Positive x is to the right; positive y is dowm
MM_TWIPS Each logical unit is converted to 1/20 of a point. (Because a point is 1/72 inch,a twip is 1/1440 inch.) Positive x is to the right; positive y is up
CSC::RECTANGLE
BOOL Rectangle(int x1,int y1,int x2,int y2);
Remarks
Draws a rectangle using the current pen ,The interior of the retangle is filled using the current brush.
PenStyle
PS_SOLID Creates a solid pen.
PS_DASH Creates a dashed pen.Valid only when the pen width is 1 or less,in device units.
PS_DOT Cretes a dotted pen. Valid only when the pen width is 1 or less, in device units.
PS_NULL Creates a null pen.
CBrush::CBrush
CBrush(COLORREF crColor);
Parameters;
crColor:Specifies the foreground color of the brush as an RGB color. If the brush is hatched, this parameter specifies the color of the hatching.;
3有一个链表,他的节点结构如下:
Struct NODE
{
Int data;
NODE*next
};
此链表是按照升序排列的,请写出向链表中插入新元素的函数,要求插入后依然有序,函数声名如下,请将函数定义补充完整。
Void insertList(NODE *head,int nInsertData);
Return Value: void
Parameters: head:链表头指针。nInsertData:将要插入的新数据
4
4请补充完整的下列程序,该段程序目的是在窗口客户区的正中位置画一个边长为3厘米的红色矩形,外匡为红色,中间用红色填充0。设窗口客户区的大小为
Voic cview:paintRectangle()
{
cclientDC dc(this);
…….
…….
}
[此贴子已经被作者于2006-5-29 20:55:37编辑过]