《网络程序设计》期末总复习_最新版 苏大

《网络程序设计》期末总复习_最新版 苏大
《网络程序设计》期末总复习_最新版 苏大

前言:

陆老师:“附件中为经修改、增添内容后的最新《网络程序设计总复习题》,请转发全班同学,以复习这个为准,考试也已这个为准。

另外,考试的读程序部分,要求能读懂Linux Berkeley Socket编写的程序、Windows Winsock编写的程序,其中Windows MFC程序要求能读懂书上的对话框界面的Talkc程序中的各个类的程序编写,也请转告各位同学。

祝你们全班都能考个好成绩。

陆建德,即日”

第一章网络编程基础

1.实现网间进程通信必须解决哪些问题?

答:(1)网间进程的标识问题;

(2)如何与网络协议栈连接的问题;

(3)协议的识别问题;

(4)不同的通信服务的问题

2. 说明TCP/IP中,端口的概念和端口的分配机制。

答:端口是TCP/IP协议族中,应用层进程与传输层协议实体间的通信接口。TCP/IP协议采用了全局分配(静态分配)和本地分配(动态分配)相结合的分配方法。

对于TCP,或者UDP,将它们的全部65535个端口号分为保留端口号和自由端口号两部分。保留端口的范围是0—1023,又称为众所周知的端口或熟知端口(well-known port),其余的端口号,1024-65535,称为自由端口号,采用本地分配,又称为动态分配的方法。

总之,TCP或UDP端口的分配规则是:

端口0:不使用,或者作为特殊的使用;

端口1-255:保留给特定的服务,TCP和UDP均规定,小于256的端口号才能分配给网上著名的服务;

端口256-1023:保留给其他的服务,如路由;

端口1024-4999:可以用作任意客户的端口;

端口5000-65535:可以用作用户的服务器端口。

3. 什么是网络应用进程的网络地址?说明三元组和五元组的概念。

答:(传输层协议,主机的IP地址,传输层的端口号)标识了因特网中,进程间通信的一个端点,也把它称为网络应用进程的网络地址。

(传输层协议,主机的IP地址,传输层的端口号),这样一个三元组,叫做一个半相关(half-association)。

(传输层协议,本地机IP地址,本地机传输层端口,远地机IP地址,远地机传输层端口),这样一个五元组称为一个全相关(association)。即两个协议相同的半相关才能组合成一个合适的全相关,或完全指定一对网间通信的进程。

4. 举例说明面向消息的协议与基于流动协议有什么不同。

答:例如甲向乙发送三个消息,分别是:128、64和32字节。

面向消息的协议中,如果接受缓冲区是256字节,足以接收3条消息,且这三条消息全部达到。乙仍然需要发送3条读取消息。分别返回128、64、32字节,而不用一次读取来调用者单个数据包。

基于流的消息协议中,在接收端乙的堆栈把所有进来的消息数据包聚集在一起,放入堆栈,等待应用进程读取。进程发送读取命令,指定了进程接收缓冲区,如果进程缓冲区有256字节,系统马上返回全部224字节。

5.说明C/S模式的概念、工作过程和特点。

答:C/S模式即客户机/服务器模式,是应用程序最常用的通信模式。

服务器的工作过程是:(1)打开一通信通道,并告知服务器所在的主机,它愿意在某一公认的地址上接收客户请求。(2)等待客户的请求到达该端口。(3)服务器接收到服务请求,处理该请求并发送应答信号。为了能并发地接收多个客户的服务请求,要激活一个新进程或新线

程来处理这个客户请求(如UNIX系统中用fork、exec)。服务完成后,关闭此新进程与客户的通信链路,并终止。(4)返回第二步,等待并处理另一客户请求。(5)在特定的情况下,关闭服务器。

客户端的工作过程:(1)打开一通信通道,并连接到服务器所在主机的特定监听端口。(2)向服务器发送请求报文,等待并接收应答;继续提出请求,与服务器的会话按照应用协议进行。(3)请求结束后,关闭通信通道并终止。

特点:

(1)客户和服务器都是软件进程,C/S模式是网络上通过进程通信建立分布式应用的常用模型。

(2)非对称性:服务器通过网络提供服务,客户通过网络使用服务,这种不对称性体现在软件结构和工作过程上。

(3)对等性:客户和服务器必有一套共识的约定,必与以某种应用层协议相联,并且协议必须在通信的两端实现。

(4)服务器的被动性:服务器必须先行启动,时刻监听,及时服务,只要有客户请求,就立即处理并响应,回传信息。但决不主动提供服务。

(5)客户机的主动性:客户机可以随时提出请求,通过网络得到服务,也可以关机走人,一次请求与服务的过程是由客户机首先激发的。

(6)一对多:一个服务器可以为多个客户机服务,客户机也可以打开多个窗口,连接多个服务器。

(7)分布性与共享性:资源在服务器端组织与存储,通过网络分散在多个客户端使用。

第二章UNIX套接字编程接口

1. 实现套接字编程接口的两种方式是什么?

答:一种是在操作系统的内核中增加相应的软件来实现,一种是通过开发操作系统之外的函数库来实现。UNIX使用前者,Windows使用后者。

2.套接字通信与UNIX操作系统的输入/输出的关系是什么?

答: (p.29)

Unix操作系统对文件和所有其他的I/O设备采用一种统一的操作模式,就是“打开-读-写-关闭”的I/O模式,套接字编程接口也被纳入Unix操作系统的传统输入输出概念的范畴。在Unix的实现中,套接字是完全与其它I/O集成在一起的。操作系统和应用程序都将套接字编程接口也看做一种I/O机制,体现在:

(1)操作的过程类似,套接字沿用了大多数I/O所使用的“打开-读-写-关闭”模式,先创建套接字,然后使用它,最后将它删除;

(2)操作方法类似,使用描述符,先申请生成一个套接字,系统返回一个描述符,在调用有关套接字进行网络数据传输时,就将这个描述符作为参数;

(3)使用的过程的名字也类似,如接收网络数据与发送网络数据用read和write过程。

3. 什么是套接字?说明套接字特点。

答:套接字是应用程序通过网络协议栈进行通信交互的接口。

套接字特点是:

(1)通信域。套接字通常只和同一域中的套接字交换数据。如果数据交换要穿越域的边界,就一定要执行某种解释程序。

(2)套接字有三种类型:流式、数据报和原始套接字。

(3)套接字由应用层创建,并为其服务,而后被释放。

(4)使用确定的IP地址和传输层端口号。

4. 说明主机字节顺序和网络字节顺序的概念。

答:不同计算机中,存放多字节值的顺序不同,有的先低后高,有的先高后低。具体计算机中的多字节数据的存储顺序称为主机字节顺序。

在网络协议中,对多字节数据在网络协议报头中的存储顺序称为网络字节顺序。

在设计网络应用程序时,应注意两种字节顺序的转换:

在网络应用程序发送时,应将主机字节顺序的IP地址和端口号分别用htonl()和htons()转换为网络字节顺序,设置到网络协议报头的对应字段中。

在网络应用程序接收时,应将网络协议报头对应字段中的网络字节顺序的IP地址和端口号分别用ntohl()和ntohs()转换为主机字节顺序,赋值到本机变量和内存中。

5.数据报套接字的编程基本步骤

答:数据报也即无连接套接字有两种模式:

(1)对等模式:

(2)C/S模式:

6. 原始套接字的编程基本步骤

原始套接字编程步骤如下:

(1)采用恰当的协议标志,创建原始套接字句柄;

(2)根据需要设置套接字的选项;

(3)调用connect和bind函数来绑定对方和本地地址;

(4)发送数据包、接收数据包;

(5)用完后,关闭套接字。

7. 服务器端和客户机端操作流式套接口的工作过程。

见下图。

8. 利用Unix操作系统的fork()系统调用,写出编制多进程并发执行服务器程序的基本编程框架。

在服务器程序中用fork()创建子进程,对于每一个客户端,用一个专门的进程为它服务,

通过进程的并发执行,来实现对多个客户机的并发访问,基本的编程框架如下:

第三章Windows环境的网络编程

1. WinSock规范与Berkeley套接口的区别是什么?

答:(a)套接口数据类型和该类型的错误返回值

(b)select() 函数和FD_*宏。在Winsock中,使用select()函数时,应用程序应坚持用FD_XXX宏来设置,初始化,清除和检查fd_set结构。

(c)错误代码的获得在Winsock中,错误代码可以使用WSAGetLastError()调用得到。

(d)指针:所有应用程序与Windows Sockets使用的指针都必须是FAR指针。

(e)重命名的函数:

close()改变为closesocket(),ioctl()改变为ioctlsocket()

(f)Winsock支持的最大套接口数目在WINSOCK.H中缺省值是64,在编译时由常量FD_SETSIZE决定。

(g)头文件:原来Berkeley套接字的多个头文件现在被包含在Winsock的一个头文件中:对Windows Sockets1.1的应用程序,只需简单地包含winsock.h就足够了,对

Windows Sockets2.x的应用程序,只需简单地包含winsock2.h就行了。

(h)Winsock规范对于原始套接口的支持。

(i)Winsock规范对于原始套接口和消息驱动机制的支持。体现在异步选择机制、异步请求函数、阻塞处理方法、错误处理、启动和终止等方面。

2. WinSock的注册和注销的过程

答:①注册过程:在WinSock程序的开始处,要调用WSAStartup,其格式:

int WSAStartup( WORD wVersionRequested, LPWSADATA lpWSAData );

其中,wVersionRequested:指定要使用的WinSock的最高版本号,

lpWSAData: 用来返回WinSockAPI实现细节的WSAData结构变量指针。

②注销过程:WinSock应用程序结束前,必须调用WSACleanup()函数,其格式为:

int WSACleanup ( void );

以解除与Winsock.DLL库的绑定,释放Winsock实现分配给应用程序的系统资源,中止对Windows Sockets DLL的使用。

3. 简要说明Unix/Linux操作系统和Windows操作系统对套接字网络编程接口的两种实现方式,这两种实现方式的差别体现在网络编程时有什么不同?

答:要想实现套接字编程接口,可以采用两种实现方式:一种是Unix/Linux的方法,在操作系统的内核中增加相应的软件来实现,在BSD Unix及起源于它的操作系统中,套接字函数是操作系统本身的功能调用,是操作系统内核的一部分。另一种是Windows的方法,通过开发操作系统之外的winsock函数库来实现,其中每个函数具有与Unix套接字函数相同的名字与参数,这样,套接字库就能向没有本机套接字的计算机上的应用程序提供套接字编程接口。

这两种套接字实现方式的差别使得后者(Windows操作系统)需要在编的程序开始语句中先要装载并初始化winsock动态链接库(使用WSAStartup函数),在程序结束前需要卸载和注销winsock动态链接库(使用WSACleanup函数)。而前者(Unix操作系统)则完全不需要这两个函数做初始化和卸载注销工作。

4. 画框图说明同步套接字的send函数的执行流程。

注意:buf是用户进程的发送缓冲区,而SYSBUF是系统套接字的数据发送缓冲区。

第四章MFC编程

1. 说明构成应用程序的对象之间的关系。(有哪些对象以及各对象之间的关系)

这里,用图的形式可直观地表示所涉及的MFC类的继承或者派生关系,如下图所示。

2. 简述典型MDI(多文档)界面的MFC应用程序Test所包含的各个类及其基本功能。

答:(1) 应用程序类(CTestApp),派生于CWinApp,负责应用程序的初始化、运行和结束。

(2) 主边框窗口类(CMainFrame),由CMDIFrameWnd派生,用于管理菜单、工具条、加速键、文档边框窗口、视图窗口等,协调半模式状态等。

(3) 文档边框窗口类(CChildFrame),由CMDIChildWnd派生,MDI应用程序用文档边框窗口来包含视图窗口。

(4)文档类(CTestDoc),从CDocument类派生,用来管理数据。视图窗口通过文档对象来访问和更新数据。

(5)视图类(CTestView),从CView类或其它派生类派生。视图和文档相关联,在文档和用户之间起中介作用。

(6)文档模板类(CMultiDocTemplate)。MDI应用程序通过文档模板类对象建立文档边框窗口类对象、文档类对象、视图类对象三者的联系,管理这三个对象的创建。

3. 说明MFC对象和Windows对象的关系。

所谓Windows对象是Win32下用句柄表示的Windows操作系统对象;所谓MFC对象是C++对象,是一个C++类的实例。两者有很大的区别,但联系紧密。

以窗口对象为例:

抽象,高层封装底层对象

MFC的CWnd类窗口对象和Windows的窗口对象的关系

4. 说明MFC对象和Windows对象的区别。(p.109 – p.110)

(1)对应的数据结构不同

(2)所处的层次不同

(3)创建的机制不同

(4)二者转换的方式不同

(5)使用的范围不同

(6)销毁的方法不同

5. CObject类具有哪些特性?p.116

答:CObject类有很多有用的特性:

①对运行时类信息的支持;

②对动态创建的支持;

③对序列化的支持;

④对象诊断输出,等等。

6. 说明应用程序、文档模板、边框窗口、视图和文档等的创建关系。

p.121(创建的前后顺序)

答:①应用程序是全局对象,在启动程序之前构造;

②应用程序创建文档模板;

③文档模板创建文档和边框窗口;

④边框窗口创建视图。

7. MFC应用程序的执行分为哪三个阶段?每个阶段主要做什么?

答:MFC应用程序的执行分为三个阶段:

(1)应用程序启动和初始化阶段:

MFC程序在该阶段(主要在应用程序类的InitInstance()中)创建MFC对象和Windows对象、建立各种对象之间的关系,并把窗口显示在屏幕上;

(2)与用户交互阶段:

MFC程序在该阶段会产生各种消息,经主程序的消息循环发送到操作系统,操作系统找到相应类中该消息对应的消息处理回调函数,执行用户程序的各种交互响应功能;

(3)程序退出和清理阶段:

MFC程序在该阶段,关闭窗口、销毁所创建的Windows对象和MFC对象。

8. 以一个SDI界面的应用程序Test为例,说明该MFC程序由哪几个类构成,简述其启动、运行、退出的工作过程。

答:以一个SDI界面的应用程序Test为例,该MFC应用程序由应用程序类CTestApp、框架窗口类CMainFrame、文档类CTestDoc、视图类CTestView组成,其启动、运行、退出过程如下图所示,同样经历上题所述的三个阶段。

在阶段(1)应用程序启动和初始化阶段:

①先实例化CTestApp类的应用程序全局对象theApp;

②然后启动执行WinMain(),该函数在隐藏的MFC框架程序中;

③在WinMain()中,该函数先取得本应用程序对象的指针pApp,此后会执行AFX内部初始化AfxWinInit()、应用程序全局初始化InitApplication(),然后,执行该应用程序实例对象自己特定的初始化InitInstance(),用户在此可重载该虚拟函数,做诸如创建文档模板、框架窗口、文档、视图, 建立它们之间的关联、显示窗口、更新窗口等窗口程序初始化工作;

④然后,在WinMain()中执行消息循环Run(),等待接收消息。

在阶段(2)与用户交互阶段:

用户操作程序运行时会产生各种消息,由主程序WinMain()中执行的消息循环Run(),会接收、转换、发送这些消息到操作系统,操作系统找到相应类中这个消息对应的消息处理回调函数,执行各种消息的处理,作出与用户交互的响应。

在阶段(3)程序退出和清理阶段:

①如用户单击主窗口的关闭按钮,会产生ID_APP_EXIT消息,相应执行消息处理函数CWinApp::OnAppExit(),会向主窗口发送WM_CLOSE消息;

②主窗口收到WM_CLOSE消息,相应执行消息处理函数CFrameWnd::OnClose(),在该函数中会处理各类边框窗口的关闭,还涉及到关闭相关的文档、销毁相关的窗口,关闭窗口后,发送WM_QUIT消息;

③在WinMain()中执行的消息循环Run()中收到WM_QUIT消息后,则执行退出处理函数ExitInstance(),用户可重载此函数,如删除自己的对象(注意: MFC可以自动删除标准对象,如文档、视图和窗口框架等),退出消息循环,进而退出整个MFC应用程序。

9. 消息循环的过程是什么?p.124-125, 及图4.7

在主进程的消息循环中,调用PeekMessage()函数来获取消息,若没有消息,则进行空闲Idle处理(执行OnIdle空闲处理函数),然后用PumpMessage()函数来转换消息和发送消息给操作系统,若消息是WM_QUIT消息,则调用ExitInstance()函数后退出消息循环。

10. 应用程序的退出过程是什么?p.126

答:下面以单击主窗口的关闭按钮为例,来说明应用程序退出的过程。

1)用户单击主窗口的关闭按钮,导致发送MFC发送标准命令消息ID_APP_EXIT,于是MFC 调用相应的CWinApp::OnAppExit()消息处理函数来完成对该命令消息的缺省处理,主要是向主窗口发送WM_CLOSE消息。

2)主窗口处理WM_CLOSE消息,于是MFC调用相应的CFrameWnd::OnClose()消息处理函数,在该函数中处理各类边框窗口的关闭,还涉及到关闭相关的文档、销毁相关的窗口,关闭窗口后,发送WM_QUIT消息。

3)消息循环中收到WM_QUIT消息后,退出消息循环,进而退出整个应用程序。

第五章MFC WinSocket类的编程

1.使用CAsyncSocket类的一般步骤是什么?

答:CAsyncSocket类是异步套接字类。使用的一般步骤如下:

2.CAsyncSocket类可以接受并处理哪些消息事件?当这些网络事件发生时,MFC框架作何处理?(消息机制)

答:MFC套接字对象可以接受并处理的六种网络事件:

(1)FD_READ事件通知:通知输入缓冲区中有数据可读。

(2)FD_WRITE事件通知:通知输出缓冲区已腾空,可以写数据。

(3)FD_ACCEPT事件通知:通知服务器端的监听套接字有连接请求可以接受。

(4)FD_CONNECT事件通知:通知客户端的请求连接的套接字,连接的要求已被处理。

(5)FD_CLOSE事件通知:通知套接字已关闭。

(6)FD_OOB事件通知:通知将有带外数据到达

处理:按照Windows的消息驱动机制,MFC框架应当把消息发送给相应的套接字对象,并调用作为该对象成员函数的事件处理函数。事件与处理函数是一一映射的。

在afxSock.h文件中的CAsyncSocket类的声明中,定义了与这六个网络事件对应的事件处理函数:

对应FD_READ事件,处理函数为OnReceive(); 将接收数据。

对应FD_WRITE事件,处理函数为OnSend(); 将发送数据。

对应FD_ACCEPT事件,处理函数为OnAccept(); 服务器端将接受待决的连接请求。

对应FD_CONNECT事件,处理函数为OnConnect(); 此时客户端将可使用该连接来传输

数据。

对应FD_CLOSE事件,处理函数为OnClose(); 将做该套接字被关闭时本方应做的结束善后工作。

对应FD_OOB事件,处理函数为OnOutOfBandData();将会在逻辑上独立的带外通道上接收带外数据。

3.CSocket类如何通过CArchive对象来进行数据传输?

答:使用CSocket类的最大优点在于,应用程序可以在连接的两端通过CArchive对象来进行数据传输。CSocket类是同步套接字类,提供阻塞调用。同时用CSocket类时,必须使用流式套接字。具体做法是:

(1)创建CSocket类套接字对象

(2)创建基于CSocketFile类的文件对象,并关联到套接字对象(使用已创建的CSocket 类对象的指针)。

(3)创建用于输入和输出的CArchive对象,并关联到CSocketFile类文件对象(使用已创建的CSocketFile类对象的指针)。

(4)利用CArchive对象来发送和接收数据。

4.说明CSocket类的编程模型。

答:下面给出针对流式套接字的CSocket类的编程模型:

服务器端:

(1)CSocket sockServ; // 创建空的服务器端监听套接字对象。

(2)sockServ.Create( nPort );

// 用众所周知的端口,创建监听套接字对象的底层套接字句柄。

(3)sockServ.Listen(); // 启动对于客户端连接请求的监听。

(4)CSocket sockRecv; // 创建空的服务器端连接套接字对象。

sockServ.Accept( sockRecv);

// 接收客户端的连接请求,并将其他的任务转交给连接套接字对象。

(5)CSocketFile* file ;

file= new CSocketFile( &sockRecv); //创建文件对象并关联到连接套接字对象。

(6)CArchive* arIn, arOut;

arIn = CArchive(&file, CArchive::load); // 创建用于输入的归档对象,

arOut = CArchive( &file, CArchive::store); // 创建用于输出的归档对象。

// 归档对象必须关联到文件对象。

(7)arIn >> dwValue; // 进行数据输入。

adOut << dwValue; // 进行数据输出。输入或输出可以反复进行。

(8)sockRecv.Close();

sockServ.Close(); // 传输完毕,关闭监听和连接套接字对象。

客户端:

(1)CSocket sockClient; // 创建空的客户机端套接字对象。

(2)sockClient.Create( ); // 创建套接字对象的底层套接字。

(3)sockClient.Connect( strAddr, nPort ); // 请求连接到服务器。

(4)CSockFile* file ;

file = new CSockFile( &sockClent); //创建文件对象,并关联到套接字对象。

(5)CArchive* arIn, arOut;

arIn = CArchive(&file, CArchive::load); // 创建用于输入的归档对象,

arOut = CArchive( &file, CArchive::store); // 创建用于输出的归档对象。

// 归档对象必须关联到文件对象。

(6)arIn >> dwValue; // 进行数据输入。

adOut << dwValue; // 进行数据输出。输入或输出可以反复进行。

(7)sockClient.Close(); // 传输完毕,关闭套接字对象。

第六章WinInet编程

1. MFC WinInet所包含的类有哪些,分别代表什么?

答:1. 会话类,为CInternetSession类,代表应用程序的一次Internet会话。

2.连接类,代表了与特定网络服务器的连接,包括具连接共性的CInternetConnection类和它的派生类CFtpConnection类、CHttpConnection类、和CGopherConnection类。

3. 文件类,首先包括CInternetFile类和由它派生的CHttpFile类和CGopherFile类,分别对应FTP文件、HTTP请求和Gopher文件的句柄封装;另外,由CFileFind类派生的用于文件查找的CFtpFileFind类和CGopherFileFind类也应归入文件类的层次。

4.错误或异常类,为CInternetException类,代表以上类的成员函数在执行时发生的错误或异常。

2. MFC WinInet 各种类之间的关系

答:如下图,其中细线箭头从基类指向继承类,表示了类的派生关系;粗线箭头从函数指向它所创建的类对象。

3.使用WinInet类编程的一般步骤是什么?

答:1)创建CInternetSession类对象,创建并初始化Internet会话。

2)利用CInternetSession类的QueryOption或SetOption成员函数,可以查询或设置该类内含的Internet请求选项,这一步是可选。

3)创建连接类对象,建立CInternetSession对象与网络服务器的连接,也就是应用程序与网络服务器的连接。

4)创建文件检索类对象,对服务器进行检索。

5)如果需要使用异步操作模式,可以重载CInternetSession类的OnStatusCallback函数,并启动应用程序使用状态回调机制。重载相关函数,加入自己的代码。

6)如果还想更紧密地控制对于服务器文件的访问,可以进一步创建文件类对象实例,完成文件查找或文件读写操作。

7)创建CInternetException类对象实例,处理错误。

8)关闭各种类,将资源释放给系统。

第七章WinSock的多线程编程

1.什么是WinSock的阻塞模式、非阻塞模式?各有何优缺点?缺点如何克服?

答:WinSock的两种I/O模式是:“阻塞”模式(Blocking Mode)或“非阻塞”模式,又称为同步模式或异步模式。

阻塞模式的优点:阻塞套接字的I/O操作工作情况比较确定,无非是调用、等待、返回。大部分情况下,I/O操作都能成功地完成,不过就是花费了等待的时间。因而比较容易使用,容易编程。

阻塞模式的缺点:在应付诸如需要建立多个套接字连接来为多个客户服务的时候,或在数据的收发量不均匀的时候,或在输入输出的时间不确定的时候,却显得性能低下,甚至无能为力。

非阻塞模式的优点:能应付诸如需要建立多个套接字连接来为多个客户服务,可以处理数据的收发量不均匀、输入输出的时间不确定等问题。

非阻塞模式的缺点:用非阻塞套接字,需要编写更多的代码,因为必须恰当地把握调用I/O函数的时机,尽量减少无功而返的调用,还必须详加分析每个Winsock调用中收到的WSAEWOULDBLOCK错误,采取相应的对策,这种I/O操作的随机性使得非阻塞套接字显得难于操作。

解决方法:

对于非阻塞的套接字工作模式,进一步引入五种“套接字I/O模型”,有助于应用程序通过一种异步方式,同时对一个或多个套接字上进行的通信加以管理。

对于阻塞的套接字工作模式,则进一步引入多线程机制。多线程机制可以将阻塞限制在某个线程中,从而不影响其它线程的正常工作。

2.说明用户界面线程和工作线程的概念和特点。

答:用户界面线程:通常用来处理用户输入产生的消息和事件,并独立地响应正在应用程序其它部分执行的线程们产生的消息和事件。用户界面线程包含一个消息处理的循环,以应对各种事件。

工作线程:适用于处理那些不要求用户输入并且比较消耗时间的其他任务。对用户来说,工作线程运行在后台。这就使得工作线程特别适合去等待一个事件的发生。在网络编程中,凡是可能引起系统阻塞的操作,都可以用工作线程来完成。

3.简述创建MFC的工作线程所必需的步骤。

答:(1)编程实现控制函数:

一个工作线程对应一个控制函数,线程执行的任务都应编写在控制函数中,控制函数规定了该线程的执行代码,启动线程实际上就是开始运行它对应的控制函数。该控制函数的唯一入口参数是一个指针,用来取得主进程启动该工作线程时传入的参数。

(2)调用AfxBeginThread()函数创建并启动工作线程:

在进程的主线程或其它线程中调用AfxBeginThread()函数创建新的工作线程,并使新线程开始运行。调用该函数时的两个主要入口参数是控制函数指针、传给控制函数的参数指针。

4.简述创建并启动MFC用户界面线程所必需的步骤。

答:1.从CWinThread类派生出自己的线程类,一般借助ClassWizard来做这项工作。

2.改造这个线程类,包括:

①在~.h文件中声明动态创建;

②在~.cpp文件中宣布使用动态创建;

③重载自己线程类的InitInstance();

④创建新的用户界面窗口、并添加所需的控件;

⑤用ClassWizard添加控件成员变量、响应消息的成员函数。

3.调用AfxBeginThread(RUNTIMECLASS(…))函数创建并启动用户界面线程。

5.如何正常终止线程?如何提前终止线程?

答:正常终止线程:

①工作线程:执行完毕时用return 0;便会退出控制函数;

②用户界面线程:在某个事件处理函数中调用PostQuitMessage(),会发送出WM_QUIT 消息,在Run()消息循环中收到该消息便会自动退出消息循环、正常终止进程。

提前终止线程:

从线程内调用AfxEndThread函数,就可以强迫线程终止。

6.掌握MFC支持的多线程的两种网络编程实现方式:

工作线程:掌握创建、使用、终止工作线程的网络编程实现方法

用户界面线程:掌握创建、使用、终止用户界面线程的网络编程实现方法

第八章WinSock的I/O模型

1、非阻塞套接字的五种“套接字I/O模型”及适用场合

select(选择)-- 最基本的I/O模型,Unix/Linux Berkley Socket、Windows Winsock WSAAsyncSelect(异步选择)-- 窗口消息管理时

WSAEventSelect(事件选择)-- 同时管理一或多个套接字时

Overlapped I/O(重叠式I/O)-- 同时控制几个套接字时

Completion port(完成端口)-- 有大量I/O请求提供服务时

2、select模型的操作步骤

select(选择)模型是Winsock中最常见的I/O模型。它的中心思想是利用select函数,实现对多个套接字I/O的管理。

用select操作一个或多个套接字句柄,一般采用下述步骤:

(1)使用FD_ZERO宏,初始化自己感兴趣的每一个fd_set集合。

(2)使用FD_SET宏,将要检查的套接字句柄添加到自己感兴趣的每个fd_set集合中,相当于在指定的fd_set集合中,设置好要检查的I/O活动。

(3)调用select函数,然后等待。select完成返回后,会修改每个fd_set结构,删除那些不存在待决I/O操作的套接字句柄,在各个fd_set集合中返回符合条件的套接字。

(4)根据select的返回值,使用FD_ISSET宏,对每个fd_set集合进行检查,判断一个特定的套接字是否仍在集合中,便可判断出哪些套接字存在着尚未完成(待决)的I/O操作。

(5)知道了每个集合中“待决”的I/O操作之后,对相应的套接字的I/O进行处理,然后返回步骤1,继续进行select处理。

《英语语音》期末考试试卷及答案

《英语语音》考试试卷(A卷、闭卷) I. , (15%) ()1. A. B. C. D. ()2. A. B. C. D. ()3. A. B. C. D. ()4. A. B. C. D. ()5. A. B. C. ()6. A. B. C. D. ()7. A. B. C. D. ()8. A. B. C. D. ()9. A. B. C. D. ()10. A. B. C. D. . (15%) ()1. A. B. C. D. ()2. A. B. C. D. ()3. A. B. C. D. ()4. A. B. C. D. ()5. A. B. C. D. ()6. A. B. C. D. ()7. A. B. C. D. ()8. A. B. C. D. ()9. A. B.

C. D. ()10. A. B. C. D. . . (15%) ( ) 1. A . ( ) 2. . ( ) 3. / i: / / ? /. ( ) 4. / k / / g / . ( ) 5. , . ( ) 6. . ( ) 7. a . ( ) 8. , . ( ) 9. A a a a . A . ( )10. . . . ( 1 , 20%) 1. () , , , , . , , ; , , . 2. A . 3. : , . 4. , a a , .

5. , : 1) ; 2) . V. . (20%). 1. “” . A. B. C. 2. . , . A. B. C. a 3. . A. B. C. 4. “”, “”, “”“”, “c”“k” . A. B. C. 5. “ .” . A. ’s . B. ’s . C. . 6. I’ . A. B. a C. 7. a ? A. B. C. 8. ? A. B. C. 9. a . A. B. C. ? 10. :

模拟电子线路期末试题及其答案(两套)

《模拟电子技术基础(一)》期末试题〔A 〕 一、填空题(15分) 1.由PN 结构成的半导体二极管具有的主要特性是 性。 2、双极性晶体三极管工作于放大模式的外部条件是 。 3.从信号的传输途径看,集成运放由 、 、 、 这几个部分组成。 4.某放大器的下限角频率L ω,上限角频率H ω,则带宽为 Hz 。 5.共发射极电路中采用恒流源做有源负载是利用其 的特点以获得较高增益。 6.在RC 桥式正弦波振荡电路中,当满足相位起振条件时,则其中电压放大电路的放大 倍数要略大于 才能起振。 7.电压比较器工作时,在输入电压从足够低逐渐增大到足够高的过程中,单限比较器的 输出状态发生 次跃变,迟滞比较器的输出状态发生 次跃变。 8.直流稳压电源的主要组成部分是 、 、 、 。 二、单项选择题(15分) 1.当温度升高时,二极管反向饱和电流将 。 [ ] A 增大 B 减小 C 不变 D 等于零 2.场效应管起放大作用时应工作在漏极特性的 。 [ ] A 非饱和区 B 饱和区 C 截止区 D 击穿区

3.直接耦合放大电路存在零点漂移的原因主要是 。 [ ] A 电阻阻值有误差 B 晶体管参数的分散性 C 晶体管参数受温度影响 D 受输入信号变化的影响 4.差动放大电路的主要特点是 。 [ ] A 有效放大差模信号,有力抑制共模信号;B 既放大差模信号,又放大共模信号 C 有效放大共模信号,有力抑制差模信号; D 既抑制差模信号,又抑制共模信号。 5.互补输出级采用射极输出方式是为了使 。 [ ] A 电压放大倍数高 B 输出电流小 C 输出电阻增大 D 带负载能力强 6.集成运放电路采用直接耦合方式是因为 。 [ ] A 可获得较高增益 B 可使温漂变小 C 在集成工艺中难于制造大电容 D 可以增大输入电阻 7.放大电路在高频信号作用下放大倍数下降的原因是 。 [ ] A 耦合电容和旁路电容的影响 B 晶体管极间电容和分布电容的影响 C 晶体管的非线性特性 D 放大电路的静态工作点设置不合适 8.当信号频率等于放大电路的L f 和H f 时,放大倍数的数值将下降到中频时的 。 A 0.5倍 B 0.7倍 C 0.9倍 D 1.2倍 [ ] 9.在输入量不变的情况下,若引入反馈后 ,则说明引入的是负反馈。[ ] A 输入电阻增大 B 输出量增大 C 净输入量增大 D 净输入量减小 10 [ ] A 、

高级英语期末考试题型2

高级英语期末考试题型: Lexical work: Unit 1 1.ego: self, especially as contrast with another self or the world 2.disparity: a noticeable difference 3.prestigious: having prestige,i.e. general respect or admiration felt for someone or something, because they have high quality, social influence, success, etc. 4.allot: give as a share or set apart for a purpose 5.typify: be a typical example of, show all the most usual characteristics of something Unit 2 1.minute: very small 2.chartered: hired for use by a particular group or person 3.a standing order: a permanent request(for something by a customer) 4.extract: obtain by much effort 5.trinket: a small ornament(as a jewel or ring)of little value 6.flapping: swaying loosely, and making a noise, especially when moved by wind Unit 3 1.disorientation: confusion, loss of one's bearings 2.vistas: sweeping views 3.eerie: frightening because of strangeness or gloominess 4.tactile: relating to the sense of touch 5.redemption: forgiveness from the consequences of sin and evil which Christians believe was made possible by Jesus Christ's death on the cross赎罪. This is a religious term. 6.congealed: stiffened 7.wino: one who is chronically addicted to drinking wine Unit 4 1.constraints: restrictions, limitations 2.scale: a graded series/scheme/system of rank of order; something graded especially when used as a measure or rule尺度 3.norm: a standard, e.g. of behaviour or ability, that is regarded as average or generally accepted 4.formalities: a way of writing letters in accordance with accepted rules for official occasion 5.tautologous:unnecessarily repetitive, obvious 6.veribage:too many unnecessary words in speech or writing Unit 5 1.sulk: be silently bad-tempered 2.surreal: having a strange dreamlike unreal quality 3.malevolent: having a wish to harm others, showing intense ill will; here, strong, adverse, harmful 4.torrential:(rain)pouring down rapidly and in great quantities 5.radically: drastically: severely 6.accentuate: make(something)more noticeable Unit 6

最新酒店英语期末考试试卷-(1)

试卷代码: 南京城市职业学院2015-2016学年度第二学期 酒店管理专业酒店英语期末考试试题 班级:学号:姓名: 2016年6月 一、单选题(每题1分,共20分) 1、Good morning. _______ I help you? A、Would B、Must C、May D、Am 2、I would like to _________ a room, please. A.order B、book C、see D、look 3. It’s very kind __________ you to help me. A.of B、to C、by D、for 4. What’s the ________ for a double room? A. right B. rate C、money D、for 5. I would like to book a double room ________ bath. A. with B. of C、by D、for 6.Excuse me, sir. You need to ________ the form. A. fill in B. fill on C、fill of D、fill for 7.We are looking forward to __________ you. A. see B. saw C、seeing D、sees 8.I'm afraid we are fully booked _______ the 5th. A. with B. of C、by D、for 9.Do you want to pay _____ cash or _____ credit card. A. in in B. by by C、by in D、in by 10.The porter will show you _______ your room. A. with B. to C、by D、for 11.My flight will leave ______ 6 pm today. A. with B. on C、at D、for 12.The hotel is full and there is someone ________ your room. A. take B. To take C、takes D、taking 13.Let me _______ you with your luggage.

模拟电路期末试卷及标准答案

《模拟电子技术基础(1)》期末试题 (A 卷)参考答案及评分标准 一、填空(每空1分,共20分) 1. 双极型晶体管工作在放大区的偏置条件是发射结 正偏、集电结反偏。 2. 放大器级间耦合方式有三种: 直接 耦合; 阻容 耦合;变压器 耦合; 在集成电路中通常采用 直接耦合。 3. 差分放大器的基本特点是放大差模信号、抑制共模信号。 4. 乙类推挽放大器的主要失真是 _________ ,要消除此失真,应改 用甲乙类推挽放大器。 5. 图1所示两级放大电路,图中级间采用 阻容 耦合方式,h 接成 共基 组 态,T 2接成 共集 组态,R i 和R 2的作用是 为T1管提供基极偏置 。 I ------------ 1 ------------------------------ 曲叫 前卜L 6. 在阻容耦合放大器中,若要降低下限频率,应将耦合电容的值 增大。 7. 共射一共基组合电路中,由于共射电路的上限频率 小干 共基电路的上 限频率,故此组合电路的上限频率主要取决于 共射 电路。 8. 负反馈系统产生自激的条件是T (j ?) = -1,相应的振幅条件是T (j ) =1, 图1

相位条件是T 匸:吆

二、简答(共3小题,每小题5分,共15分) 1. 测得工作在放大电路中两个晶体管的三个电极电流如图 2所示 (1) 判断它们各是NPN 管还是PNP 管,在图中标出 答:见图中标识(判断NPN 管还是PNP 管各1分,标出e ,b ,c 极1 分, 共3 分) (2)估算(b)图晶体管的1和〉值 p 0.985 (各1分,共2分) 1 e , b ,c 极; I C 6 'LOT 60, 图2

《高级英语》期末考试试卷(A)参考答案05-06

2005 -2006 学年第二学期 《高级英语》期末考试试卷(A)参考答案 I.Fill in the blanks with the appropriate forms of the given words and phrases. (15%) 1. speaks volumes 2. in the vicinity of 3. at his disposal 4. acted as 5. oblivious 不知道的of 6. look up to 7. to no avail 8. follow suit 9. a battery of 10. in lieu of场所 11. unparalleled 12. reassuring 13. circulation 14. significance 15. engulfed II.Paraphrase the following sentences, especially paying attention to the underlined part. (20%)看要求评分 III.Proofreading (10%) The Great Depression first started in the New York Stork Exchange. In the 1920s, there were fatal flaws on the prosperity 1. in of the economy. Overproduction of crops depresses food prices, 2. depressed and farmers suffered. Industrial workers were earning better wages, but they still did not have enough purchased power to continue buying 3.purchasing the flood of goods that poured out of their factories. With profits soar and interest rates low, a great deal of money was available 4.soaring for investment, and much of tha t capital wen t into reckless 5. but speculation. Billions of dollars \that poured into the stock market, and 6 that frantic bidding boosted the price of share far above their real value. 7.shares As long as the market prospered, speculators could make fortunes overnight, but they could be ruined just as quick if stock 8.quickly prices fell. On October 24, 1929 –“Black Thursday” -- a wave of panic selling of stocks swept the New York Stock Exchange. Once started, the collapse of shares and other security prices could not be halted. By 1932, thousands of banks and over 100,000 businesses had been failed. Industrial 9. been production was cut in half, farm income had fallen by more than half, wages had increased 60%, new investment was 10. decreased down 90%, and one out of every four was unemployed in the USA. IV.Reading comprehension (25%) 1-5 BCADB 6-10 BCBCA 11-15 CCBCA 16-20 DDCCB 21-25 BAACA V. Text analysis (30%) 看要求评分。

研究生英语期末考试试卷

ad if 命 封 线 密

A. some modern women prefer a life of individual freedom. B. the family is no longer the basic unit of society in present-day Europe. C. some professional people have too much work to do to feel lonely. D. Most Europeans conceive living a single life as unacceptable. 5.What is the author’s purpose in writing the passage? A. To review the impact of women becoming high earners. B. To contemplate the philosophy underlying individualism. C. To examine the trend of young people living alone. D. To stress the rebuilding of personal relationships. Passage Two American dramas and sitcoms would have been candidates for prime time several years ago. But those programs -though some remain popular -increasingly occupy fringe times slots on foreign networks. Instead, a growing number of shows produced by local broadcasters are on the air at the best times. The shift counters longstanding assumptions that TV shows produced in the United States would continue to overshadow locally produced shows from Singapore to Sicily. The changes are coming at a time when the influence of the United States on international affairs has annoyed friends and foes alike, and some people are expressing relief that at least on television American culture is no longer quite the force it once was. “There has always been a concern that the image of the world would be shaped too much by American culture,” said Dr. Jo Groebek, director general of the European Institu te for the Media, a non-profit group. Given the choice, he adds, foreign viewers often prefer homegrown shows that better reflect local tastes, cultures and historical events. Unlike in the United States, commercial broadcasting in most regions of the world -including Asia, Europe, and a lesser extent Latin America, which has a long history of commercial TV -is a relatively recent development. A majority of broadcasters in many countries were either state-owned or state-subsidized for much of the last century. Governments began to relax their control in the 1980’s by privatizing national broadcasters and granting licenses to dozens of new commercial networks. The rise of cable and satellite pay-television increased the spectrum of channels. Relatively inexperienced and often financed on a shoestring, these new commercial stations needed hours of programming fast. The cheapest and easiest way to fill airtime was to buy shows from American studios, and the bidding wars for popular shows were fierce. The big American studios took advantage of that demand by raising prices and forcing foreign broadcasters to buy less popular programs if they wanted access to the best-selling shows and movies. “The studio priced themselves out of prime time,” said Harry Evans Sloan, chairman of SBS Broadcasting, a Pan-European broadcaster. Mr. Sloan estimates that over the last decade, the price of American programs has increased fivefold even as the international ratings for these shows have declined. American broadcasters are still the biggest buyers of American-made television shows, accounting for 90% of the $25 billion in 2001 sales. But international sales which totaled $2.5 billion last year often make the difference between a profit and a loss on show. As the pace of foreign sales slows -the market is now growing at 5% a year, down from the double-digit growth of the 1990’s -studio executives are rethinking production costs. 6. Which of the following best characterizes the image embodied in American shows? A. Self-contradictory B. Prejudice-free C. Culture-loaded D. Audience-targeted 7. The intervention of governments in the 1980’s resulted in __________ . A. the patenting of domination shows and movies B. the emergence of new commercial networks C. the promotion of cable and satellite pay-television D. the intense competition coming from the outside 8. The phrase “on a shoestring” (Para. 6) most probably means __________. A. in need of capital B. after a fashion C. on second thoughts D. in the interests of themselves 9. The main reason why American dramas and sitcoms are driven out of prime time is that ____. A. they lose competitiveness B. they are not market-oriented C. they are too much priced D. they fall short of audience expectations 10. American studio producers will give thought to production costs __________. A. if they have no access to popular shows B. because their endeavors come to no avail C. since bidding wars are no longer fierce D. as international sales pace slows down Passage Three How shops can exploit people's herd mentality to increase sales 1. A TRIP to the supermarket may not seem like an exercise in psychological warfare—but it is. Shopkeepers know that filling a store with the aroma of freshly baked bread makes people feel hungry and persuades them to buy more food than they had intended. Stocking the most expensive products at eye level makes them sell faster than cheaper but less visible competitors. Now researchers are investigating how “swarm intelligence” (th at is,how ants,bees or any social animal,including humans,behave in a crowd) can be used to influence what people buy. 2. At a recent conference on the simulation of adaptive behaviour in Rome,Zeeshan-ul-hassan Usmani,a computer scientist from the Florida Institute of Technology,described a new way to increase impulse buying using this phenomenon. Supermarkets already encourage shoppers to buy things they did not realise they wanted: for instance,by placing everyday items such as milk and eggs at the back of the store,forcing shoppers to walk past other tempting goods to reach them. Mr Usmani and Ronaldo Menezes,also of the Florida Institute of Technology, set out to enhance this tendency to buy more by playing on the herd instinct. The idea is that, if a certain product is seen to be popular, shoppers are likely to choose it too. The challenge is to keep customers informed about what others are buying. 3. Enter smart-cart technology. In Mr Usmani's supermarket every product has a radio frequency identification tag, a sort of barcode that uses radio waves to transmit information,and every trolley has a scanner that reads this information and relays it to a central computer. As a customer walks past a shelf of goods, a screen on the shelf tells him how many people currently in the shop have chosen that particular product. If the number is high, he is more likely to select it too.

模拟电路期末考试题A卷

模拟电路试题B卷 一.(24分) 1)射极输出器的特性归纳为:电压增益,电压跟随性好,输入阻抗,输出阻抗,而且具有一定的放大能力和功率放大能力,射极输出器的反馈类型是。 2)电压负反馈可以使放大器的输出稳定,电流负反馈可以使放大器的输出稳定。 3)在差分放大电路中,大小相等、极性或相位一致的两个输入信号称为信号;大小相等,极性 或相位相反的两个输入信号称为信号。 4)在导体中导电的是,在半导体中导电的不仅有,而且有,这是半导体区别于导 体导电的重要特征。 5)PN结正向偏置时,反向偏置时,这种特性称为PN结的。 6)晶体三极管有两个PN结,即结和结,在放大电路中结必须正偏, 结必须反偏。 7)晶体三极管有型和型两种类型。 8)画放大器的直流通路时,将视为开路,画交流通路时,将和视为短;.

路。 二.(1.9分,2.9分,3.6分,共24分) 1.放大电路如图所示,T为锗NPN管. (1)设V cc=12V,R c=3kΩ,β=70,如果要将静态工作点电流I c调至1.5mA,问R b要取多大? (2)电路参数同上,如果要将静态工作点的电压V CE调至3.3V,问R b应多大? (3)在调整静态工作点时,如稍不小心把R b调至零,这时三极管是否会损坏,为什么?为避免损坏,电路上可 采取什么措施? 得分 ;.

2.已知电路参数如图所示,R g1=300kΩ,R g2=100kΩ,R g3=2MΩ,R d=10kΩ,R2=10kΩ,+V DD=+20V,场效应 管工作点的互导g m=1ms,设r d>>R d (1)画出小信号等效电路; (2)求电压增益A v; (3)求放大器的输入电阻R i 3.下面电路其输入,输出波形如图所示 试问: a)此电路产生何种类型失真? (饱和?截止?) b)为消除此失真,应如何调节电阻R b? ;.

高级英语期末考试卷

Final Test for English Majors of 2002 (Advanced English) I. Choose the best answer: 25% 1. She gave thanks for our contribution. A. procure B. profuse C. profound D. prodigious 2. and conspiracy will not succeed; the government will not be defeated. A. Subscription B. Subsidence C. Submission D. Subversion 3. A good friend will not desert one in time of . A. adversary B. adverse C. adversity D. advent 4. The psychiatrist gave that the man was insane at that time. A. evidence B. argument C. witness D. testimony 5. She is a woman of erect and handsome . A. carriage B. figure C. personage D. appearance 6. His with everything we suggest makes it hard to know what he really feels. A. alliance B. compliment C. compliance D. compassion 7. Diligent police work will help crime. A. endorse B. eradicate C. fluctuate D. radiate 8. Nutritionists food into seven basic groups. A. categorize B. clarify C. ratify D. separate 9. Only states are able to make treaties. A. sovereignty B. sovereign C. democratic D. democracy 10. diseases may be spread by viruses and bacteria. A. Deadly B. Mortal C. Fatal D. Infectious 11. His only is an occasional game of golf. A. diversification B. diversion C. diversity D. divergence 12. One of California?s most problems is an inadequate water supply. A. acute B. unusual C. persistent D. unexpected 13. Large areas of Alaskan land remain due to harsh climate. A. inaccessible B. immature C. desolate D. parched 14. Constant interruption of his work him. A. threshed B. tormented C. exasperated D. evaporated

大一英语期末考试试卷

Testing Paper Unit 1, 4, 5 Sky:陈人智、吴斌、马琴、苏红光 Group________ Name__________ Score_________ I. Listening (30%) I).Listen to the dialog between Gary and Paul and choose the best answer to each of the questions you hear on the recording. (2×5=10) (Unit 1 Part II Listening I) ()1.A.Eating and drinking. B. Dancing to the music. C. Standing around at the party. D. Talking with his girlfriend. ()2.A.Women who stay home doing housework. B. Women who stimulate his intellect. C. Women who pursue their own careers. D. Women who enjoy reading novels. ()3.A. Cleaning and cooking. B. Fixing things around the house. C. Washing the car and collecting the trash. D. Watching television and taking out the garbage. ()4.A.They are the same as his. B. They are quite progressive for the times. C. They reflect the views of earlier generations. D. They were shaped by their own family life. ()5.A. Visit his friend, Bob. B. Remain at the party to try to make new friends. C. Meet a woman who shares his interest in literature. D. Return home alone and spend the night with his dog. II).Listen to the passage and decide whether the following statements are true or false. Write "T" for True and "F" for False in the spaces provided. (2×5=10) (Unit 4 Part III Practice One) ______6.Women and men play different roles in society because their physical structures are very different. ______7.Girl babies were found to differ a lot from boy babies in birth length, weight and irritability. ______8.Our parents, school, television and the Internet show us how we should behave. ______9.Male cartoon characters are usually more prominent than female characters. ______10.Nowadays, women are no longer expected to play their traditional roles. III).Listen to the interview and complete the following sentences with the exact words you hear(1×10=10) (Unit 1 Part Four Section III) 11. You throw a little boy a ball, and he will try to _______it 12. A baby boy will pick up a stick and _______it_______ a gun 13. When boys play with Barbie dolls, they like to _______their hair_______ 14. Boys couldn't_______ _______ if their hair is untidy 15. Boys grow their fingernails long because they're too _______ to _______ them. 16. At an early age, boys are attracted to _______ II Words and Expressions (40%) 1.assign __________________ 2.culturally__________________ 3.genetic _________________ 4.sex-biased__________________ 5.neatness ________________ 6.nursery_____________________ 7. carry over_______________ 8.fall behind __________________

相关文档
最新文档