【正文】
nstituent constitution, defers to the specific algorithm to realize respectively, the algorithm quality direct decision realizes the software performance fit and unfit the algorithm with any method, what resources designs the algorithm to need, requires how many running time, how many storage space, how to determine an algorithm the quality, when realizes a software, is must give to puter system39。 s Allpurpose Symbolic Instruction Code, abbreviate as its name suggests, Basic one specially for language that beginner design, because it easy to learn easy to know, So the body is Basic language to belong to and solve translating type, so can carry out line by line , So it can see the result carried out at once , this is a very convenient design for it have concept of structure either, one that is in procedure maintain and management have as much as other language backend Basic correct shorting of the above(such as Quick Basic), make it may used for and develop the largescaler procedure language is the basic position, which forms VB has stipulated the form of sentences and :The sentence defines incantations [Sentence body]Sentence define agree with and used in fixed function of sentence, sentence body appoint concrete content or want concrete operation that carry out of set of sentence VB language, carry on with VB sentence organic association finish a 學(xué)院畢業(yè)設(shè)計(jì)(論文)譯文專用紙 第 13 頁(yè)certain specific function the + procedure can solve a certain application application program code window write in“ code editing machine” generally.“ editing machine of code” is like the word processing software of a piece of height specialization, there are many easies function of writing VB code, Pursue to show [Example ExHello ]In“ code editing machine” code that window written.“Editing machine of code” windowSection 4 develop the application program with Visual BasicUse VB programming, design appearance of application program first generally, write every target procedure code or other treatment procedure of incident respectively, Work of programming should be light procedure of establishing the application program is as follows: Establish application program interfaceThe interface is the mutual bridge of user and procedure, Generally formed of window body and vision frame of the button, menu, text standard WINDOWS interface of application program that VB according to function of procedure and user and need of information interchange of procedure, Come to confirm that need those targets , plan the overall arrangement of the by each attributes of target in interfaceDemand and set up each attribute of target such as appearance, name, size of to interface of attribute person who fetch can set up through the attribute window when design already, Too can set up revising when operating in procedure through programming in procedure the targets respond programming by procedure code procedure code of programming targetInterface determine appearance of procedure only, design window add codes through“ code editing machine” soon after the interface, Realize some make the tasks, such as responding, information processing, accepting external message, Add 學(xué)院畢業(yè)設(shè)計(jì)(論文)譯文專用紙 第 14 頁(yè)code , realize some response, information processing that make after accepting external information task, As editor39?!?Basic” means BASIC language, because VB is developed on the basis of already existing BAISC is a kind of programming language in mon use of Microsoft, It, including VBA of the numerous Windows application software use VB language in Microsoft Excel, Microsoft Accessed., For users to carry on the secondary development。this phrase is Beginners allpurpose symbolic instruction code, the Chinese meaning “to the initial directive GM symbol code language.”Visual Basic learning, Professional Edition and Enterprise Edition versions to meet the different needs of the and apply to the ordinary version of the majority of learners and the use of Visual Basic development of the general staff of Windows applications, but。因此,算法的復(fù)雜性分析對(duì)算法的設(shè)計(jì)或選用有著重要的指導(dǎo)意義和實(shí)用價(jià)值。對(duì)于任意給定的問(wèn)題,設(shè)計(jì)出復(fù)雜性盡可能低的算法是在設(shè)計(jì)算法時(shí)考慮的一個(gè)重要目標(biāo)。根據(jù)不同的算法寫出的程序放在計(jì)算機(jī)上運(yùn)算時(shí),所需要的時(shí)間和空間是不同的,算法的復(fù)雜性是對(duì)算法運(yùn)算所需時(shí)間和空間的一種度量。計(jì)算機(jī)的資源,最重要的是運(yùn)算所需的時(shí)間和存儲(chǔ)程序和數(shù)據(jù)所需的空間資源,算法的復(fù)雜性有時(shí)間復(fù)雜性和空間復(fù)雜性之分。算法的復(fù)雜性是算法效率的度量,在評(píng)價(jià)算法性能時(shí),復(fù)雜性是一個(gè)重要的依據(jù)。一個(gè)算法總是在執(zhí)行了有窮步的運(yùn)算后終止,即該算法是可達(dá)的。作為算法運(yùn)算的結(jié)果,一個(gè)算法產(chǎn)生一個(gè)或多個(gè)輸出,輸出是同輸入有某種特定關(guān)系的量。一個(gè)算法有0個(gè)或多個(gè)輸入,在算法運(yùn)算開始之前給出算法所需數(shù)據(jù)的初值,這些輸入取自特定的對(duì)象集合。要求算法中有待實(shí)現(xiàn)的運(yùn)算都是基本的,每種運(yùn)算至少在原理上能由人用紙和筆在有限的時(shí)間內(nèi)完成。算法的每一種運(yùn)算必須有確定的意義,該種運(yùn)算應(yīng)執(zhí)行何種動(dòng)作應(yīng)無(wú)二義性,目的明確。用計(jì)算機(jī)語(yǔ)言描述的算法是否可計(jì)算、有效合理,須對(duì)程序進(jìn)行測(cè)試,測(cè)試程序的工作由調(diào)試和作時(shí)空分布圖組成。分析算法可以預(yù)測(cè)這一算法適合在什么樣的環(huán)境中有效地運(yùn)行,對(duì)解決同一問(wèn)題的不同算法的有效性作出比較。④ 分析算法。算法確認(rèn)的目的是使人們確信這一算法能夠正確無(wú)誤地工作,即該算法具有可計(jì)算性。描述算法的方法有多種形式,例如自然語(yǔ)言和算法語(yǔ)言,各自有適用的環(huán)境和特點(diǎn)。算法設(shè)計(jì)工作是不可能完全自動(dòng)化的,應(yīng)學(xué)習(xí)了解已經(jīng)被實(shí)踐證明是有用的一些基本的算法設(shè)計(jì)方法,這些基本的設(shè)計(jì)方法不僅適用于計(jì)算機(jī)科學(xué),而且適用于電氣工程、運(yùn)籌學(xué)等領(lǐng)域。制定一個(gè)算法,一般要經(jīng)過(guò)設(shè)計(jì)、確認(rèn)、分析、編碼、測(cè)試、調(diào)試、計(jì)時(shí)等階段。算法和程序之間存在密切的關(guān)系。在計(jì)算機(jī)科學(xué)中,算法要用計(jì)算機(jī)算法語(yǔ)言描述,算法代表用計(jì)算機(jī)解一類問(wèn)題的精確、有效的方法。因此,算法設(shè)計(jì)與分析是計(jì)算機(jī)科學(xué)與技術(shù)的一個(gè)核心問(wèn)題。用什么方法來(lái)設(shè)計(jì)算法,所設(shè)計(jì)算法需要什么樣的資源,需要多少運(yùn)行時(shí)間、多少存儲(chǔ)空間,如何判定一個(gè)算法的好壞,在實(shí)現(xiàn)一個(gè)軟件時(shí),都是必須予以解決的?!袷褂脭?shù)據(jù)庫(kù)控制項(xiàng)和綁定控制項(xiàng) ●使用數(shù)據(jù)庫(kù)對(duì)象變量進(jìn)行編程 ● 在使用VB進(jìn)行數(shù)據(jù)庫(kù)編程時(shí),通常,會(huì)首先選擇三種基本方法之一來(lái)進(jìn)行數(shù)據(jù)庫(kù)應(yīng)用程序的方案設(shè)計(jì), 現(xiàn)在就將以上三種設(shè)計(jì)方法的適應(yīng)范圍及其優(yōu)缺點(diǎn)進(jìn)行一個(gè)比較。6.生成可執(zhí)行程序?yàn)榱耸钩绦蚩梢悦撾xVB環(huán)境,通過(guò)“文件”菜單中的“”命令來(lái)生成可執(zhí)行程序(.exe文件),此后即可直接執(zhí)行該文件。在打開一個(gè)工程(文件)時(shí),該工程有關(guān)的所有文件同時(shí)被裝載。大多數(shù)屬性取值既可以在設(shè)計(jì)時(shí)通過(guò)屬性窗口來(lái)設(shè)置,也可以在程序代碼中通過(guò)編程在程序運(yùn)行時(shí)設(shè)置修改。根據(jù)程序的功能要求和用戶與程序之間的信息交流的需要,來(lái)確定需要那些對(duì)象,規(guī)劃界面的布局?!按a編輯器”窗口第4節(jié)用Visual Basic開發(fā)應(yīng)用程序使用VB編程,一般先設(shè)計(jì)應(yīng)用程序的外觀,然后再分別編寫各對(duì)象事件的程序代碼或其他處理程序,編程的工作要輕松多。VB應(yīng)用程序代碼一般在“代碼編輯器”窗口編寫。所有語(yǔ)句的集合就是VB語(yǔ)言,用VB語(yǔ)句進(jìn)行有機(jī)組合完成某個(gè)特定功能就是程序。VB規(guī)定了語(yǔ)句格式和功能。不過(guò)在后期的Basic則改正了以上的缺點(diǎn)(如 學(xué)院畢業(yè)設(shè)計(jì)(論文)譯文專用紙 第 4 頁(yè)Quick Basic),使得它也可以用來(lái)開發(fā)較大型的程序。早期的Basic語(yǔ)言都是屬于解譯式的,因此可以一行一行地執(zhí)行,所以它可以立刻看到執(zhí)行的結(jié)果,對(duì)初學(xué)者來(lái)說(shuō)這是很方便的設(shè)計(jì)。它的全名是 Beginner’s Allpurpose Sumbolic Instruction Code,簡(jiǎn)稱為 BASIC。系統(tǒng)允許同時(shí)打開和管理多個(gè)工程。一個(gè)工程一般由若干個(gè)窗體、標(biāo)準(zhǔn)模塊以及應(yīng)用環(huán)境組成。當(dāng)?shù)谝淮螁?dòng)VB并打開一個(gè)新工程時(shí),可以看到如圖所示的集成開發(fā)環(huán)境界面。覆蓋了開發(fā)應(yīng)用程序的設(shè)計(jì)、編輯、編譯和調(diào)試等所有功能。所以可以根據(jù)不同的需要來(lái)選擇不同的版本。企業(yè)版允許專業(yè)人員以小組的形式來(lái)創(chuàng)建強(qiáng)大的分布式應(yīng)用程序。學(xué)習(xí)版使編程人員很容易地開發(fā)Win