logo资料库

计算机专业及相关英文文献翻译.doc

第1页 / 共14页
第2页 / 共14页
第3页 / 共14页
第4页 / 共14页
第5页 / 共14页
第6页 / 共14页
第7页 / 共14页
第8页 / 共14页
资料共14页,剩余部分请下载后查看
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 user 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 an 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. 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 and 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 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 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 seldom, 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 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 characteristic 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 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 . the specialty edition and enterprise edition, use to VB offer study edition, 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 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. includes all characteristics of the specialty edition. So can choose different editions according to different needs. It 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, attribute 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. When 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 application 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 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 know, 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 management 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 function. 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 association 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 specialization, 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 application program first generally, incident treatment procedure of write every target procedure code or other 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 bridge 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 confirm 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 through 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 window 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, 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 file 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 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" menus 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 program, 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 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 determine 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. Therefore, 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 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 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 stipulated 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 aspect 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, moreover 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;③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, the 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 algorithm 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 makes the space and time distribution map by the debugging to be composed. But it the algorithm has certain characteristic, 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 have 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, before 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 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 computational 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 measure, 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, this algorithm the complexity is higher; Needs the resources are less, indicated that this algorithm the indicated that
complexity is lower. The spatial resources, which computer’s resources, operate most importantly, the algorithm needs the time which and the stored routine and the data need, complexity has division time complexity and the spatial complexity. The algorithm carries 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 computer 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. Regarding 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 when 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 quantity; (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 have 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 意即可视的、可见的,指的是开发像 windows 操作系统的图形用户 界面(Graphic User Interface,GUI)的方法,它不需要编写大量代码去描述界 面元素的外观和位置,只要把预先建立好的对象拖放到屏幕上相应的位置即可。 Basic 实际上是一个短语的缩写,这个短语就是 Beginners all_purpose symbolic instruction code ,其中文意思为“初始者通用符号指令代码语言”。 Visual Basic 有学习版、专业版和企业版三种版本,以满足不同的开发需要。 学习版适用于普通学习者及大多数使用 Visual Basic 开发一般 Windows 应用程 序的人员,但是;专业版适用于计算机专业开发人员,包括了学习版的全部内容 功能以及 Internet 控件开发工具之类的高级特性;企业版除包含专业版全部的 内容外,还有自动化构件管理器等工具,使得专业编程人员能够开发功能强大的 组骨子里分布式应用程序。 Visual Basic 第 1 节 Visual Basic 的概述 Microsoft Visual Basic(简称 VB)是在 Windows 操作平台下设计应用程序 的最速度、最简捷的工具之一。不论是初学者还是专业开发人员,VB 都为他们 提供了一整套的工具,可以轻松方便的开发应用程序。因此,VB 一直被作为大 多数电脑初学者的首选入门编程语言。 “Visual”指的是采用可视化的开发图形用户界面(GUI)的方法,一般不 需要编写大量代码去描述界面元素的外观和位置,而只要把需要的控件拖放到屏 幕上的相应位置即可方便图形设计图形用户界面;“Basic”指的是 BASIC 语言, 因为 VB 是在原有的 BAISC 语言的基础上发展起来的。 VB 是 Microsoft 的一种通用程序设计语言,它包括在 Microsoft Excel、 Microsoft Access 等众多 Windows 应用软件中的 VBA 都使用 VB 语言,以供用户 进行二次开发;目前制作网页使用较多的 VBScript 脚本语言也是 VB 的子集。 利用 VB 的数据访问特性用户可以对包括 Microsoft SQL Server 和其他企 业数据库在内的大部分数据库格式创建数据库和前端应用程序,以及可调整的服 务端部件。利用 ActiveX(TM)技术,VB 可使用 Microsoft Word 字处理器、 Microsoft Excel 电子数据表极其他 Windows 应用程序提供的功能,甚至可直接 使用由 VB 专业版或企业版创建的应用程序和对象。
分享到:
收藏