摘要:
利用一组连续地址的内存单元来存储整张线性表的结构。 具有下列特征: 1. 顺序表的表名唯一。 2. 内存单元连续存储。 3. 数据顺序存放,元素之间有先后关系。 下面的例子中,我们动态的申请一张线性表。 主要定义的方法有 InitSqlist : 初始化list。 DeleteSqlist: 删除list。 InsertElem: 添加元素。当插入元素,表的元素容量大于MAXSI... 阅读全文
posted @ 2013-02-19 23:40
GreenLight
阅读(255)
评论(0)
推荐(0)
摘要:
绘制圆形 阅读全文
posted @ 2013-02-19 22:51
GreenLight
阅读(142)
评论(0)
推荐(0)
摘要:
绘制矩形 The Rectangle function draws a rectangle. The rectangle is outlined by using the current pen and filled by using the current brush. BOOL Rectangle( _In_ HDC hdc, _In_ int nLeftRect, _In... 阅读全文
posted @ 2013-02-19 22:49
GreenLight
阅读(230)
评论(0)
推荐(0)
摘要:
关于线段的绘制 这里我们主要使用两个函数来完成MoveToEx函数和LineTo函数。 MoveToEx The MoveToEx function updates the current position to the specified point and optionally returns the previous position. BOOL MoveToEx( _In_... 阅读全文
posted @ 2013-02-19 21:39
GreenLight
阅读(244)
评论(0)
推荐(0)
摘要:
(1)关于sizeof()等若干问题。 求出下列sizeof的返回值。 char* float* int* , 都是指针型,所以为4byte。 char s[] = "0123456789", 末尾隐含”\0”,所以为11byte。 char str[100], 为100 byte。 下面的结构体a, 为6byte。 struct a{ short a1; ... 阅读全文
posted @ 2013-02-19 20:54
GreenLight
阅读(335)
评论(0)
推荐(0)
浙公网安备 33010602011771号