标题:里面的第2题和第4题,谁做的出来,做一下
取消只看楼主
binglei5200
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-5-28
 问题点数:0 回复次数:3 
里面的第2题和第4题,谁做的出来,做一下

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。设窗口客户区的大小为12cm*9cm(宽*高)

Voic cview:paintRectangle()

{

cclientDC dc(this);

…….

…….

}


[此贴子已经被作者于2006-5-29 20:55:37编辑过]

搜索更多相关主题的帖子: Roman Times New 
2006-05-28 14:11
binglei5200
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-5-28
得分:0 

第2题和第4题,谁做出来,能给个答案吗?

2006-05-29 20:55
binglei5200
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-5-28
得分:0 

非常非常感谢大大们的帮忙

2006-05-30 12:44
binglei5200
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-5-28
得分:0 
还差那个第2题~
2006-05-30 12:44



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-67972-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.026182 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved