




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、Visual Basic language and arithmetic The United States launched the Microsoft Visual Basic (may be referred to VB), is the latest version of the current VB 2008 Beta2 (VB9) Chinese version. Visual meaning the visual, visible, referring to the development of operating systems like windows graphical u
2、ser interface (Graphic User Interface, GUI) method, it does not need to prepare a large number code to describe the appearance of the interface elements and location, as long as the pre - The establishment of good drag and drop objects on the screen corresponding to the location. Basic is actually a
3、n abbreviation of the phrase; this phrase is Beginners all-purpose 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 development.
4、Study 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; professional version for computer professional development of staff, including the study of functional version of the full content control an
5、d Internet development tools such as advanced features ,Enterprise contain not only all the professional version of the content, there are automated tools such as Component Manager, professional programmers to make the development of a powerful group essence of distributed applications.Visual Basic
6、Section 1 the summary of Visual Basic Microsoft Visual Basic,( abbreviate VB )as tool the most of application program one of under Windows operating platform. No matter beginner or professional developer, VB has all offered a whole set of tools to them, Development application program that it can be
7、 relaxed and convenient. So VB as most computer first-selected the ABC of programming language of beginner. " Visual" mean method to adopt visual user of development figure interface (GUI), need and write a large number of code go and describe interface appearance and position of element s
8、eldom, Tow and show controlling part that need corresponding position to get screen can help figure design interface, user of figure,; " Basic" means BASIC language, because VB is developed on the basis of already existing BAISC language. VB is a kind of programming language in common use
9、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; Make web page use more VBScript script language sub collection of VB too at present. Utilize data of VB visit charact
10、eristic user can establish the data base to most data base forms including Microsoft SQL Server and other enterprises data base With the application program of front, and adjustable service end part. Utilize ActiveX(TM) technology, VB can use word processor, electronic data list he Windows function
11、that application program offers extremely, Excel of Microsoft, Word of Microsoft, Even can use by VB specialty edition or enterprise application program and target that edition establish directly. The procedure that users established finally is a real .EXE file , can issue freely . VB offer study ed
12、ition, the specialty edition and enterprise edition, use to satisfied with different development demands. Study edition make programming personnel develop Windows and Windows application program of NT very easily. The specialty edition has offered the developing instrument with complete function to
13、programming personnel of the specialty, Include studying all functions of edition in the specialty edition. Enterprise edition allow the professional personnel to establish strong distributed application program in the form of group. It includes all characteristics of the specialty edition. So can c
14、hoose different editions according to different needs. Section 2 integrated development environments Integrated environment of VB call IDE, made up of a lot of parts , include title board, menu fence, tool fence, controlling part case, And window body window, engineering management device window, at
15、tribute window, code window and window body overall arrangement window body overall arrangement, etc. of designing etc. Have covered all functions, such as design which develops the application program, editting, compiling and debugging, etc. In VB, the application program calls the project too. Whe
16、n start VB and open a new project for the first time, can see and pursue integrated development environment interface that show. Visual Basic Integrated development environment VB come and organize development of application program through project, use project come and manage and form files of appl
17、ication program. One project uses the environment to make up by several window bodies, standard module generally. The system manages project through the project menu, for instance add the window body, quote . System allow turn on and manage a lot of projects besides. Section 3 Visual Basic language
18、brief introductions Basic use and do the elementary high-level language that used often most. Its full name is Beginner' s All-purpose Symbolic Instruction Code, abbreviate as BASIC. As its name suggests, Basic one specially for language that beginner design, because it easy to learn easy to kno
19、w, So the body is popular. Early 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 beginner. But it have concept of structure either, one that is in procedure maintain and manage
20、ment have as much as other language problems. But back-end Basic correct shortcoming of the above (such as Quick Basic), make it may used for and develop the large-scaler procedure too. The language is the basic composition, which forms VB procedure. VB has stipulated the form of sentences and funct
21、ion. Grammar: 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 sentence. All set of sentence VB language, carry on with VB sentence organic associatio
22、n finish a certain specific function the procedure. Interface + procedure can solve a certain application problem. VB 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 sp
23、ecialization, there are many easies function of writing VB code, Pursue to show Example Ex-Hello In" code editing machine" code that window written. “Editing machine of code” window Section 4 develop the application program with Visual Basic Use VB programming, design appearance of applica
24、tion program first generally, write every target procedure code or other treatment procedure of incident respectively, Work of programming should be light more. The procedure of establishing the application program is as follows: Establish application program interface The interface is the mutual br
25、idge of user and procedure, Generally formed of window body and vision frame of the button, menu, text frameset. with standard WINDOWS interface of application program that VB establish. Require according to function of procedure and user and need of information interchange of procedure, Come to con
26、firm that need those targets , plan the overall arrangement of the interface. 2. Design by each attributes of target in interface Demand and set up each attribute of target such as appearance, name, size of targeted. according to interface of planning. Most attribute person who fetch can set up thro
27、ugh the attribute window when design already, Too can set up revising when operating in procedure through programming in procedure code. Have the targets respond programming by procedure code 3. Respond procedure code of programming target Interface determine appearance of procedure only, design win
28、dow add codes through" code editing machine" soon after the interface, Realize some make the tasks, such as responding, information processing,etc. after accepting external message, Add code , realize some response, information processing that make after accepting external information task
29、, As editor's window of code pursued shows add codes “code editing machine” window 4. Keep project One VB procedure one project, at the time of designing a application program, system will set up one be expanded and called. Project file of vbp, project file include all relevant information of fi
30、le that project set up this, Keep project keep associated documents of project this at the same time. For example the window body produced when design interfaces is kept and being expanded and being called. Frm sum. In the window body of foxfire. At the time of opening a project( file), this project
31、 relevant files load at the same time. 5. Operate and debugged by procedure Operate the procedure thoroughpin operate" selecting in the menu, when the mistake appears, VB system can offer information prompt can looked for and get rid of the mistake thoroughpin debug" within operate" m
32、enus too. 6. Can produce by executive program For make procedure can break away from VB environment, order to become next life through" file"" producing project 1.exe" of menu but executive program (eyeful), Can carry out this file directly after this. In produce, + executive pro
33、gram, and then through install guide bale all associated documents, Can run independently after installation under the environment of windows 9 x/2000 as a software product.In computer system's any software, is by the every large or small each kind of software constituent constitution, defers to
34、 the specific algorithm to realize respectively, the algorithm quality direct decision realizes the software performance fit and unfit quality. Designs the algorithm with any method, what resources designs the algorithm to need, requires how many running time, how many storage space, how to determin
35、e an algorithm the quality, when realizes a software, is must give to solve. In computer system's operating system, the language compiling system, the database management system as well as in various computer application system's software, must use each one concrete algorithm to realize. The
36、refore, the algorithm design and the analysis are the computer science and a technical core question.The algorithm is the problem-solving step, we may define the algorithm Cheng Jie a determination class question the random one special method. In the computer science, the algorithm needs to use the
37、computer algorithmic language to describe, the algorithm represents with the computer solves a kind of question precisely, the effective method. The algorithm construction of data = procedure, solves one to assign may calculate or the solvable question, the different person may compile the different
38、 procedure, solves the identical problem, here has two problems: First, with computational method close related algorithm question; Second, programming technical question. Between the algorithm and the procedure has the close relationship. The algorithm is a group has the poor rule, they had stipula
39、ted solves some specific type question a series of operations, is to the problem solving plan accurate and the complete description. Formulates an algorithm, generally must pass through stages and so on design, confirmation, analysis, code, test, debugging, time. To algorithm study including five as
40、pect contents: Design algorithm. The algorithm design work is impossible completely the automation, should study the understanding already by the practice to prove that was the useful some basic algorithm design method, these basic design method was not only suitable for the computer science, moreov
41、er was suitable for domains and so on electrical engineering, operations research; Expresses the algorithm. The description algorithm's method has many kinds of forms, for example the natural language and the algorithmic language, have the suitable environment and the characteristic respectively
42、;Confirms the algorithm. The algorithm confirmed the goal is causes the people to believe firmly that this algorithm can work unmistakably correctly, namely this algorithm has the circularity. The correct algorithm describes with the computer algorithmic language, constitutes the computer program, t
43、he computer program moves on the computer, obtains the algorithm operation result; Parsing algorithm. The algorithmic analysis is requires how many computing time and the storage space to an algorithm makes the quota the analysis. The parsing algorithm may forecast that what environment this algorit
44、hm does suit in moves effectively, to solves the identical question different algorithm validity to make the comparison; Confirmation algorithm. With machine language description algorithm whether can calculate effectively, reasonable, must carry on the test to the procedure, the test order work and
45、 makes the space and time distribution map by the debugging to be composed.But the algorithm has certain characteristic, it includes: Determinism. Algorithm each kind of operation must have the determination significance, this kind of operation should carry out what kind of movement should not to ha
46、ve the ambiguity, the goal is clear; Effectiveness. Requests the operation which in the algorithm waits for realizing is basic, each kind of operation can at least completes in the principle by the human with the paper and the pen in the limited time; Input. An algorithm has 0 or the many inputs, be
47、fore the algorithm operation starts gives the algorithm to need the data the starting value, these inputs are from the specific object set; Output. Does for the algorithm operation result, an algorithm has or many outputs, the output has some kind of specific relational quantity with the input; Has
48、poor. An algorithm always after carrying out had the poor step operation has terminated, namely this algorithm was may reach.Satisfies a first four characteristic group of rule not to be able to be called the algorithm, can only be called the computational process, the operating system is a computat
49、ional process example, the operating system uses for to manage the computer resources, controls the manufacture industry movement, when has not made industry the movement, the computational process does not stop, but is at the waiting status.The algorithm complexity is the algorithm efficiency measu
50、re, when appraises the algorithm performance, the complexity is an important basis. The algorithm complex degree with moves computer resources how many which this algorithm needs related, needs the resources are more, indicated that this algorithm the complexity is higher; Needs the resources are le
51、ss, indicated that this algorithm the complexity is lower.The spatial resources, which computers resources, operate most importantly, needs the time which and the stored routine and the data need, the algorithm complexity has division time complexity and the spatial complexity.The algorithm carries
52、out the operation on the computer, needs the data which certain storage space depositing description algorithm the procedure and the algorithm need, the computer completes the operation task to require certain time. The procedure which writes according to the different algorithm places when on the c
53、omputer operates, needs the time and the space are different, the algorithm complexity is needs the time and the spatial one kind of measure to the algorithm operation. The different computer its operating speed difference is very big, is weighing an algorithm the complexity to note this point.Regar
54、ding question, which assigns willfully, a profitable target which designs, the complex low algorithm is as far as possible when designs algorithm considered. Moreover, when the question, which assigns already when has many kinds of algorithms, an important criterion which choice complexity low, is w
55、hen selects algorithm should follow. Therefore, the algorithm complex analysis or selects to the algorithm design has the important guiding sense and the use value. When discussion algorithm complexity, two questions need to clarify:(1)An algorithm's complexity expresses with what kind of quanti
56、ty;(2)How to calculate one to assign the algorithm the complexity. After finding solves a question the algorithm, is this algorithm realization, as for whether could find the method which realized, was decided in the algorithm circularity and the computation complexity, whether this question did hav
57、e the solution algorithm, whether to provide the time resources which and the spatial resources the algorithm needed.Visual Basic 語言與算法1991年,美國微軟公司推出了Visual Basic(可簡稱VB),目前的最新版本是VB 2008 Beta2(VB9)中文版。Visual 意即可視的、可見的,指的是開發(fā)像windows操作系統(tǒng)的圖形用戶界面(Graphic User Interface,GUI)的方法,它不需要編寫大量代碼去描述界面元素的外觀和位置,只要把
58、預先建立好的對象拖放到屏幕上相應的位置即可。Basic 實際上是一個短語的縮寫,這個短語就是 Beginners all_purpose symbolic instruction code ,其中文意思為“初始者通用符號指令代碼語言”。Visual Basic有學習版、專業(yè)版和企業(yè)版三種版本,以滿足不同的開發(fā)需要。學習版適用于普通學習者及大多數(shù)使用Visual Basic開發(fā)一般Windows應用程序的人員,但是;專業(yè)版適用于計算機專業(yè)開發(fā)人員,包括了學習版的全部內(nèi)容功能以及Internet控件開發(fā)工具之類的高級特性;企業(yè)版除包含專業(yè)版全部的內(nèi)容外,還有自動化構(gòu)件管理器等工具,使得專業(yè)編程人員
59、能夠開發(fā)功能強大的組骨子里分布式應用程序。 Visual Basic 第1節(jié)Visual Basic的概述 Microsoft Visual Basic(簡稱VB)是在Windows操作平臺下設計應用程序的最速度、最簡捷的工具之一。不論是初學者還是專業(yè)開發(fā)人員,VB都為他們提供了一整套的工具,可以輕松方便的開發(fā)應用程序。因此,VB一直被作為大多數(shù)電腦初學者的首選入門編程語言。 “Visual”指的是采用可視化的開發(fā)圖形用戶界面(GUI)的方法,一般不需要編寫大量代碼去描述界面元素的外觀和位置,而只要把需要的控件拖放到屏幕上的相應位置即可方便圖形設計圖形用戶界面;“Basic”指的是 BASIC語言,因為VB是在原有的BAISC語言的基礎(chǔ)上發(fā)展起來的。 VB是 Microsoft的一種通用程序設計語言,它包括在 Microsoft Excel、Microsoft Access等眾多Windows應用軟件中的VBA都使用VB語言,以供用戶進行二次開發(fā);目前制作網(wǎng)頁使用較多的VBScript腳本語言也是VB的子集。 利用VB的數(shù)據(jù)訪問特性用戶可以對包括
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 修改利用合同范本賺錢
- 住宅合同范本
- 低價轉(zhuǎn)讓轉(zhuǎn)租合同范本
- 出售積水別墅合同范例
- 代理退保委托合同范本
- 信用貸購車合同范例
- 關(guān)于承包保潔合同范本
- 《物資采購合同范本》
- 養(yǎng)殖回購合同范本
- 買裝修制式合同范本
- 巴馬格紡絲控制系統(tǒng)軟件說明書(共46頁)
- 肺結(jié)核患者管理ppt課件
- 煤矸石綜合利用項目可行性研究報告寫作范文
- 清華大學MBA課程——運籌學
- 《計量經(jīng)濟學》超全題庫及答案(完整版)
- 濕法冶金浸出凈化和沉積PPT課件
- 生產(chǎn)現(xiàn)場作業(yè)十不干PPT課件
- 雨污水管網(wǎng)勞務施工分包合同
- 通信桿路工程施工
- 初中物理光學經(jīng)典題(共23頁)
- 封條VVTT檢查流程程序參考模板
評論
0/150
提交評論