课程设计报告苏松山邮编区号查询系统.docx

上传人:b****2 文档编号:1305183 上传时间:2023-04-30 格式:DOCX 页数:26 大小:146.85KB
下载 相关 举报
课程设计报告苏松山邮编区号查询系统.docx_第1页
第1页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第2页
第2页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第3页
第3页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第4页
第4页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第5页
第5页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第6页
第6页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第7页
第7页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第8页
第8页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第9页
第9页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第10页
第10页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第11页
第11页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第12页
第12页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第13页
第13页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第14页
第14页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第15页
第15页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第16页
第16页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第17页
第17页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第18页
第18页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第19页
第19页 / 共26页
课程设计报告苏松山邮编区号查询系统.docx_第20页
第20页 / 共26页
亲,该文档总共26页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

课程设计报告苏松山邮编区号查询系统.docx

《课程设计报告苏松山邮编区号查询系统.docx》由会员分享,可在线阅读,更多相关《课程设计报告苏松山邮编区号查询系统.docx(26页珍藏版)》请在冰点文库上搜索。

课程设计报告苏松山邮编区号查询系统.docx

课程设计报告苏松山邮编区号查询系统

课程设计报告-苏松山-邮编区号查询系统

(北京)

计算机语言课程设计

——邮编区号查询系统

院系:

地球物理与信息工程学院

专业班级:

自动化11-1

学生姓名:

苏松山

学号:

2011011120

完成日期:

2013年7月13日

设计成绩:

评阅:

1.程序运行情况:

2.答辩情况:

3.平时表现:

4.设计报告:

attentiontoimprovingthequalityandefficiencyofdevelopmentandpaymoreattentiontosecurityandreformthepeople'slivelihood,morefocusonmaintainingsocialharmonyandstability,andpromotethedevelopmentoftownshipeconomyinabetterandfaster,createanewnormalXXdevelopmentandlayamoresolidfoundationforXXbuildawell-offsociety.Completedtasksthisyear,wemustalwayspayspecialattentiontotheprimarytaskofdevelopment.XXweakeconomicbase,lowlevelsofdevelopment,economicconstructionistheCenter,wehavetocreateconditionsforfastereconomicdevelopment,accumulatingmorewealth,betterpeople'slives.Effortshouldbemadetothisyear'seconomicgrowth,revenuegrowth,peoplehavemaintainedahighrateofincomegrowth,GDPgrowthofmorethan15percentrespectively.Alwaysgraspthefundamentalimpetusforreform.Wearenow"nosoldiersbehind"manyindicatorsrankedinthebottomofthecountyfromgettingbigger.Onlybygoingallouttohardwork,hardwork,innovation,reformdoesnotadapttoinstitutionalmechanisms,practices,itispossibletochangethefaceofXXpoor,intoawell-offsocietytogetherwithpeopleacrossthecountry.Wewanttobreaktheoldpatternsofthinking,methodsandorganizationofwork,bravelyandboldlyinto,makingfulluseofalltheadvantages,comprehensivereforms,tomakeallitsvitalityfordevelopmentimpulse,letfullplaytoallsourcesofwealthcreation.Shouldalwaysstability

一、设计目的:

综合运用面向对象开发工具,设计Windows风格的软件。

通过此次程序设计题目,使学生熟练掌握Windows应用程序的开发过程,为以后专业课的学习奠定基础。

二、所选编程语言:

VB

三、系统总体设计思路:

1.设计要求

由于本课题要求编写一个能快捷方便查询中国各个省市邮编区号的程序,但是由于篇幅限制,本程序无法做到实现中国任何一个地域的邮编区号的查询,只能做到县级城市及以上的查询。

所以我建立了两个TXT文本文档,其一“province.txt”用来存储需要查询的省市名称,其二“postalcode.txt”用来存储中国部分省市的邮编区号信息及县市名。

输入地名,然后单击“查询”按钮,程序自动查找该地名所属省份和区号、邮编并显示在相应的文本框中。

程序启动后,“省份”列表框中显示各省、市、自治区名称。

单击其中一项、在右边“邮编与区号”列表框中列出该省、市、自治区所辖所有地名及其区号和邮编,可以用浏览的方式查找所需地名的信息。

由于地名、长途区号的字符数各不相同,为了美观,要求“邮编和区号”列表框中显示的地名、区号和邮编必须同一列以首字符纵向对齐。

2.设计流程

本程序中我一共设置了四个窗体,一个主窗体和三个副窗体。

在主窗体上,主要包括菜单栏、工具栏、查询模块一、查询模块二以及状态栏。

副窗体其一用来显示关于作者(也就是我)的相关信息,通过主窗体菜单栏“关于”—“关于作者”或者工具栏“关于作者”按钮来和主窗体实现连接。

副窗体其二用来显示关于程序的相关信息,通过主窗体菜单栏“关于”—“关于程序”或者工具栏“关于程序”按钮来和主窗体实现连接。

最后一个副窗体用来实现退出,当按下主窗体菜单栏“退出”或者工具栏“退出”按钮时弹出,延时五秒后自动关闭。

3.功能模块的规划

在主窗体上,主要实现邮编区号的查询以及和其他窗体的连接功能,副窗体一主要实现关于作者信息的显示,副窗体二主要实现关于程序使用的介绍,副窗体三主要实现退出时相关信息的显示。

(详细介绍见四.系统各功能模块的设计)

4.预计软件实现效果

预计实现当打开主窗体时显示相关菜单栏、工具栏、状态栏、查询模块一、二以及状态栏,而且通过主窗体上的相关按钮可以实现副窗体一、副窗体二、副窗体三的打开以及返回。

ation.Shouldalwaysstabilityvantages,comprehensivereforms,tomakeallitsvitalityfordevelopmentimpulse,letfullplaytoallsourcesofwealthcreofwork,bravelyandboldlyinto,makingfulluseofalltheadoffsocietytogetherwithpeopleacrossthecountry.Wewanttobreaktheoldpatternsofthinking,methodsandorganization-ractices,itispossibletochangethefaceofXXpoor,intoawellsms,promgettingbigger.Onlybygoingallouttohardwork,hardwork,innovation,reformdoesnotadapttoinstitutionalmechaniraspthefundamentalimpetusforreform.Wearenow"nosoldiersbehind"manyindicatorsrankedinthebottomofthecountyfwaysgth,revenuegrowth,peoplehavemaintainedahighrateofincomegrowth,GDPgrowthofmorethan15percentrespectively.Altereconomicdevelopment,accumulatingmorewealth,betterpeople'slives.Effortshouldbemadetothisyear'seconomicgrownomicbase,lowlevelsofdevelopment,economicconstructionistheCenter,wehavetocreateconditionsforfasoffsociety.Completedtasksthisyear,wemustalwayspayspecialattentiontotheprimarytaskofdevelopment.XXweakeco-orXXbuildawelltionftethedevelopmentoftownshipeconomyinabetterandfaster,createanewnormalXXdevelopmentandlayamoresolidfoundaeattentiontosecurityandreformthepeople'slivelihood,morefocusonmaintainingsocialharmonyandstability,andpromoattentiontoimprovingthequalityandefficiencyofdevelopmentandpaymor2

四、系统各功能模块设计

1.主窗体

原理

用读文件的方法将province.txt和postalcode.txt中的文件保存在数组中,其中postalcode.txt中的文件用三个数组分别把地名,长途区号,邮政编码分别保存,然后将保存province.txt的数组用list1显示出来,根据list1的选中情况用list2来显示其对应的地名,长途区号,邮政编码,当输入地名要查询时,先将输入的地名与保存地名的数组逐个比较,当相同时在其他三个文本框中显示对应的省份,长途区号,邮政编码。

方案

窗体加载时将

province.txt中的

内容用input语句

从文件读出并保存

在数组province()

和Id()中,用for

循环语句控制循环

变量I,用

List1.AddItem

province(i)语句将

province()中的内

容显示在list1中,

将postalcode.txt

中的内容用line

input语句从文件读

出并保存在数组

postalcode()中,用for语句在控制数组postalcode()的循环,再用for语句来判断“,”的存在,在出现第一个逗号时从下一个字符开始先将字符保存在一个字符串变量中,在出现下一个“,”时跳出循环,然后在List1_Click()过程中用List1.ListIndex判断第一个list的选中情况,List2.AddItem根据数组里的存放情况将选中省份的地名,长途区号,邮政编码显示出来。

当输入地名要查询时,在Command1_Click()过程中用一个字符串变量保存输入的地名,再将输入的地名与保存地名的数组逐个比较,当相同时在其他三个文本框中显示对应的省份,

alwaysstabilityprehensivereforms,tomakeallitsvitalityfordevelopmentimpulse,letfullplaytoallsourcesofwealthcreation.Shouldofwork,bravelyandboldlyinto,makingfulluseofalltheadvantages,comoffsocietytogetherwithpeopleacrossthecountry.Wewanttobreaktheoldpatternsofthinking,methodsandorganization-ispossibletochangethefaceofXXpoor,intoawells,itigger.Onlybygoingallouttohardwork,hardwork,innovation,reformdoesnotadapttoinstitutionalmechanisms,practiceamentalimpetusforreform.Wearenow"nosoldiersbehind"manyindicatorsrankedinthebottomofthecountyfromgettingbefundrowth,peoplehavemaintainedahighrateofincomegrowth,GDPgrowthofmorethan15percentrespectively.Alwaysgraspthdevelopment,accumulatingmorewealth,betterpeople'slives.Effortshouldbemadetothisyear'seconomicgrowth,revenuegnomicbase,lowlevelsofdevelopment,economicconstructionistheCenter,wehavetocreateconditionsforfastereconomicoffsociety.Completedtasksthisyear,wemustalwayspayspecialattentiontotheprimarytaskofdevelopment.XXweakeco-welluildapmentoftownshipeconomyinabetterandfaster,createanewnormalXXdevelopmentandlayamoresolidfoundationforXXbosecurityandreformthepeople'slivelihood,morefocusonmaintainingsocialharmonyandstability,andpromotethedeveloattentiontoimprovingthequalityandefficiencyofdevelopmentandpaymoreattentiont3

长途区号,邮政编码。

如果没有相应的地名用MsgBox来提示。

本窗体主要运用了Imagelist控件来实现工具栏图标的显示,CommomDialog控件来实现帮助文件的打开以及显示,Toolbar控件来实现工具栏的显示,StatusBar控件来实现状态栏的显示。

本窗体还使用了3个Frame窗口来实现查询模块一、省市名称和相关信息(邮编区号)的显示。

当程序启动后,在查询模块一直接输入地名然后单击“查询”按钮,程序自动查找该地名所属省份和区号、邮编并显示在下面相应的文本框中。

如输入库尔勒,单击查询,则显示所属省份为新疆,邮编为841000,区号为0996。

如图

如果未输入地名点击查询则显示如下,

如果未找到指定地名则显示,

ation.Shouldalwaysstabilityvantages,comprehensivereforms,tomakeallitsvitalityfordevelopmentimpulse,letfullplaytoallsourcesofwealthcreofwork,bravelyandboldlyinto,makingfulluseofalltheadoffsocietytogetherwithpeopleacrossthecountry.Wewanttobreaktheoldpatternsofthinking,methodsandorganization-ractices,itispossibletochangethefaceofXXpoor,intoawellsms,promgettingbigger.Onlybygoingallouttohardwork,hardwork,innovation,reformdoesnotadapttoinstitutionalmechaniraspthefundamentalimpetusforreform.Wearenow"nosoldiersbehind"manyindicatorsrankedinthebottomofthecountyfwaysgth,revenuegrowth,peoplehavemaintainedahighrateofincomegrowth,GDPgrowthofmorethan15percentrespectively.Altereconomicdevelopment,accumulatingmorewealth,betterpeople'slives.Effortshouldbemadetothisyear'seconomicgrownomicbase,lowlevelsofdevelopment,economicconstructionistheCenter,wehavetocreateconditionsforfasoffsociety.Completedtasksthisyear,wemustalwayspayspecialattentiontotheprimarytaskofdevelopment.XXweakeco-orXXbuildawelltionftethedevelopmentoftownshipeconomyinabetterandfaster,createanewnormalXXdevelopmentandlayamoresolidfoundaeattentiontosecurityandreformthepeople'slivelihood,morefocusonmaintainingsocialharmonyandstability,andpromoattentiontoimprovingthequalityandefficiencyofdevelopmentandpaymor4

在窗体下方“省份”列表框中显示各省、市、自治区名称。

单击其中一项、在右边“邮编与区号”列表框中列出该省、市、自治区所辖所有地名及其区号和邮编,可以用浏览的方式查找所需地名的信息。

如图

同样,单击菜单栏查找下的查找按钮也可以进行查找,工具栏查找按钮也有同样的功能。

若需要查询第二个地名,则单击工具栏“清除”按钮即可把上一个查找的城市信息清除,从而实现了反复使用的功能。

2.副窗体一(关于作者)

单击主窗体菜单栏“关于”下的“关

于作者”或者单击工具栏“关于作者”按

钮即可以打开关于作者窗体,显示制作者

的相关信息,同时,主窗体消失,只显示

副窗体一,副窗体一包含八个label框和

一个返回按钮。

如右图

3.副窗体二(关于程序)

单击主窗体菜单栏“关于”下的“关于程序”或者单击工具栏“关于程序”按钮即可

alwaysstabilityprehensivereforms,tomakeallitsvitalityfordevelopmentimpulse,letfullplaytoallsourcesofwealthcreation.Shouldofwork,bravelyandboldlyinto,makingfulluseofalltheadvantages,comoffsocietytogetherwithpeopleacrossthecountry.Wewanttobreaktheoldpatternsofthinking,methodsandorganization-ispossibletochangethefaceofXXpoor,intoawells,itigger.Onlybygoingallouttohardwork,hardwork,innovation,reformdoesnotadapttoinstitutionalmechanisms,practiceamentalimpetusforreform.Wearenow"nosoldiersbehind"manyindicatorsrankedinthebottomofthecountyfromgettingbefundrowth,peoplehavemaintainedahighrateofincomegrowth,GDPgrowthofmorethan15percentrespectively.Alwaysgraspthdevelopment,accumulatingmorewealth,betterpeople'slives.Effortshouldbemadetothisyear'seconomicgrowth,revenuegnomicbase,lowlevelsofdevelopment,economicconstructionistheCenter,wehavetocreateconditionsforfastereconomicoffsociety.Completedtasksthisyear,wemustalwayspayspecialattentiontotheprimarytaskofdevelopment.XXweakeco-welluildapmentoftownshipeconomyinabetterandfaster,createanewnormalXXdevelopmentandlayamoresolidfoundationforXXbosecu

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 自然科学 > 数学

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2