|
阅读:1061回复:1
菜鸟求助 试题2道!望高手指教
<P><B>试题一:</B>
开发环境描述: <FONT face="Times New Roman"> VB( or VC )</FONT>,<FONT face="Times New Roman">MapX</FONT>,<FONT face="Times New Roman">MapInfo Professional </FONT>考查重点: <FONT face="Times New Roman"> </FONT>对<FONT face="Times New Roman">MapInfo Professional</FONT>的基本操作; <FONT face="Times New Roman"> </FONT>对<FONT face="Times New Roman">MapX</FONT>中的绘图函数的掌握; <FONT face="Times New Roman"> </FONT>简单算法程序的编写能力; 测试内容: <FONT face="Times New Roman"> 1</FONT>、用<FONT face="Times New Roman">MapInfo Professional</FONT>新建一个包含至少<FONT face="Times New Roman">2</FONT>个字段的图层文件 <FONT face="Times New Roman"> A.tab</FONT>; <FONT face="Times New Roman"> 2</FONT>、用<FONT face="Times New Roman">MapInfo Professional</FONT>在<FONT face="Times New Roman">A.tab</FONT>中添加两个折线对象<FONT face="Times New Roman">Line1 </FONT>和<FONT face="Times New Roman">Line2</FONT>,要求这两个对象的节点数都不少于<FONT face="Times New Roman">5</FONT>个,<FONT face="Times New Roman">Line1</FONT>和<FONT face="Times New Roman">Line2</FONT>必 <FONT face="Times New Roman"> </FONT>须相交; <FONT face="Times New Roman"> 3</FONT>、用<FONT face="Times New Roman">MapX + VB( or VC )</FONT>编写一段程序,在程序中实现: <FONT face="Times New Roman"> 3.1</FONT>、打开<FONT face="Times New Roman">A.tab</FONT>并显示在<FONT face="Times New Roman">mapx</FONT>控件中<FONT face="Times New Roman"> </FONT>; <FONT face="Times New Roman"> 3.2</FONT>、创建一个新的物理图层文件<FONT face="Times New Roman">B.tab</FONT>,<FONT face="Times New Roman">B.tab</FONT>与<FONT face="Times New Roman">A.tab</FONT>在同一个 <FONT face="Times New Roman"> </FONT>目录下; <FONT face="Times New Roman"> 3.3</FONT>、将<FONT face="Times New Roman">Line1</FONT>和<FONT face="Times New Roman">Line2</FONT>在交点处各自截断,生成<FONT face="Times New Roman">4</FONT>个新的折线对象 <FONT face="Times New Roman"> Line1_1</FONT>、<FONT face="Times New Roman">Line1_2</FONT>、<FONT face="Times New Roman">Line2_1</FONT>、<FONT face="Times New Roman">Line2_2</FONT>; <FONT face="Times New Roman"> 3.4</FONT>、将截断产生的<FONT face="Times New Roman">4</FONT>条新线段添加到<FONT face="Times New Roman">B</FONT>上,并将这些线段按它们在 <FONT face="Times New Roman"> B</FONT>上的生成顺序标上序号,要求在图上能看到标注; <B>试题二:</B> 开发环境描述: <FONT face="Times New Roman"> VB( or VC )</FONT>,<FONT face="Times New Roman">MapX</FONT>,<FONT face="Times New Roman">MapInfo Professional</FONT>,<FONT face="Times New Roman">Access </FONT>考查重点: <FONT face="Times New Roman"> </FONT>对<FONT face="Times New Roman">MapInfo Professional</FONT>的基本操作; <FONT face="Times New Roman"> </FONT>对<FONT face="Times New Roman">MapX</FONT>中的常用函数的掌握; <FONT face="Times New Roman"> </FONT>对数据库访问的熟悉程度; 测试内容: <FONT face="Times New Roman"> 1</FONT>、用<FONT face="Times New Roman">MapInfo Professional</FONT>新建一个包含至少<FONT face="Times New Roman">2</FONT>个字段的图层文件 <FONT face="Times New Roman"> A.tab</FONT>,其中一个字段为<FONT face="Times New Roman">Name</FONT>(<FONT face="Times New Roman">Char 50</FONT>),并在图层中创建至少<FONT face="Times New Roman">10</FONT>个 <FONT face="Times New Roman"> </FONT>对象; <FONT face="Times New Roman"> 2</FONT>、用<FONT face="Times New Roman">Access</FONT>创建一个新的数据库<FONT face="Times New Roman">A.mdb</FONT>,在<FONT face="Times New Roman">A.mdb</FONT>中创建一个包含至少<FONT face="Times New Roman">2 </FONT>个字段的表<FONT face="Times New Roman">T</FONT>,其中一个字段为<FONT face="Times New Roman">Name</FONT>(<FONT face="Times New Roman">Char 50</FONT>),另一个字段为 <FONT face="Times New Roman"> Value</FONT>(<FONT face="Times New Roman">Numeric</FONT>); <FONT face="Times New Roman"> 3</FONT>、在<FONT face="Times New Roman">T</FONT>中添加至少<FONT face="Times New Roman">10</FONT>条记录,每条记录的<FONT face="Times New Roman">Name</FONT>值应与<FONT face="Times New Roman">A</FONT>中的<FONT face="Times New Roman">Name</FONT>值相对 <FONT face="Times New Roman"> </FONT>应,每条记录的<FONT face="Times New Roman">Value</FONT>值可以任取<FONT face="Times New Roman">0-100</FONT>中的整数,但不允许重复; <FONT face="Times New Roman"> </FONT> <FONT face="Times New Roman"> 4</FONT>、用<FONT face="Times New Roman">MapX + VB( or VC )</FONT>编写一段程序,在程序中实现: <FONT face="Times New Roman"> 4.1</FONT>、打开<FONT face="Times New Roman">A.tab</FONT>并显示在<FONT face="Times New Roman">mapx</FONT>控件中<FONT face="Times New Roman"> </FONT>; <FONT face="Times New Roman"> 4.2</FONT>、通过<FONT face="Times New Roman">ADO</FONT>连接<FONT face="Times New Roman">T</FONT>并显示在<FONT face="Times New Roman">Grid</FONT>或<FONT face="Times New Roman">List</FONT>等其它控件 <FONT face="Times New Roman"> </FONT>中;</P> <P><FONT face="Times New Roman"> 4.3</FONT>、在界面上实现由用户自定义查询条件<FONT face="Times New Roman">Value > xx</FONT>,<FONT face="Times New Roman">xx</FONT>为<FONT face="Times New Roman">100 </FONT>以内的整数,然后由用户在地图上单击鼠标或是拉框,按用 <FONT face="Times New Roman"> </FONT>户输入的条件及鼠标选定的范围查询图层<FONT face="Times New Roman">A</FONT>上所有满足条件 <FONT face="Times New Roman"> </FONT>的对象; <FONT face="Times New Roman"> 4.4</FONT>、以<FONT face="Times New Roman">MessageBox</FONT>的形式,显示所有符合条件的对象的地理属 <FONT face="Times New Roman"> </FONT>性,包括对象的<FONT face="Times New Roman">Name</FONT>、类型(点<FONT face="Times New Roman">|</FONT>线<FONT face="Times New Roman">|</FONT>面)、坐标(如果对象 <FONT face="Times New Roman"> </FONT>非点类型,取第一个节点坐标即可); <FONT face="Times New Roman"> 4.5</FONT>、以<FONT face="Times New Roman">MessageBox</FONT>的形式,显示所有符合条件的对象的来自表<FONT face="Times New Roman">T </FONT>的<FONT face="Times New Roman">Name</FONT>和<FONT face="Times New Roman">Value</FONT>值; </P> [此贴子已经被作者于2004-8-24 1:54:56编辑过]
|
|
|
1楼#
发布于:2004-08-25 17:48
到上面的原码帖里面就可以找到答案
|
|