Current location - Recipe Complete Network - Complete cookbook of home-style dishes - What is programming?
What is programming?
The process of editing a program to make a computer execute it is called programming.

Many softwares can be programmed, and the representative softwares are BASIC.

C,C++,VB,VF,JSP,ASP,PHP。

I suggest you start with the basic tree structure.

If you learn programming well, you can work in a software company.

Generally speaking, you can earn 2500 yuan/m.

BASIC is the abbreviation of general symbol instruction code for beginners, and it is a high-level computer language widely used in the world. BASIC is easy to learn, and it is still one of the main learning languages for computer introduction.

Since the appearance of BASIC language, its appearance and development have gone through the following four stages:

The first stage: (1964 ~ early 1970s)1964 BASIC language came out.

The second stage: (1975 ~ mid-1980s) basically solidified on the microcomputer.

The third stage: Structured Basic Language (from the mid-1980s to the early 1990s).

The fourth stage: (from 199 1) Visual BASIC.

BASIC is an easy-to-learn and easy-to-use advanced language, which is very suitable for beginners to learn and use. Commonly used compiler software includes true basic, turbo basic quick basic, visual basic, carealizer, GFA basic, power basic, etc. ......

199 1 year, Microsoft released Visual Basic 1.0 version. This caused a great sensation at that time. Many experts believe that the emergence of VB is an epoch-making event in the history of software development. In fact, from our current point of view, the function of VB 10 is really too weak. But at that time, it was the first "visual" programming software. This makes programmers enjoy it and try to create software on the platform of VB. Microsoft also lost no time in pushing out three versions of VB20, VB30 and VB40 within four years. Starting from VB3, Microsoft integrated the database driver of ACCESS into VB, which greatly improved the database programming ability of VB. Since VB4, VB has also introduced the idea of object-oriented programming. VB is powerful and easy to learn. Moreover, VB also introduces the concept of "control:", so that a large number of compiled VB programs can be used directly by us. Now, VB has version 6.0.

After several years of development, it has become a truly professional development language and environment. Users think that Windows programs can be created quickly with Visual Basic, and now they can also write enterprise-level client/server programs and powerful database applications. More functions are provided in the new version of Visual Basic.

Visual Basic programming foundation

What is a program?

First, you need to know the answer to the following question: "What is a program?" A computer program is an instruction set that tells a computer how to perform a special task. Readers may be familiar with many instructions, such as cooking special foods according to recipes or arriving at unfamiliar destinations according to specified directions. Without these special instructions, the expected task will not be carried out.

The same is true of computers, except that they need to provide instructions for each task they perform. Even the simplest tasks require instructions, such as how to get keystrokes, how to display a letter on the screen, and how to save messages on disk. Fortunately, many of these instructions are contained in the processor chip or built into the operating system, so users don't have to worry about them.

Instead, focus on providing instructions for tasks, such as calculating employee salaries, creating a neighbor mailing list, or setting formatted text to display the latest annual report information. Although we read these instructions in natural language, computer instructions must be binary codes, that is, a series of on or off States in computer memory and processor. Some languages, such as assembly language, can allow this type of code to be written directly. However, it is very difficult to program in this way, so Visual Basic and other programming languages enable programmers to write instructions in a way somewhat similar to natural languages. However, even these instructions are still limited and follow a highly defined structure.

Event driven programming

Visual Basic allows you to create programs that reflect user actions and system events. This kind of programming is called event-driven programming. To understand how event drivers work, we must first understand how past programs work and how they are different in the Windows environment. Before the advent of Windows (back to DOS and "prehistoric" PC), programs were run in sequence. In other words, once the program is started, it will execute one instruction at a time until the program ends or a fatal error occurs.

object-oriented programming

The key technology to make it easier to create Windows programs is object-oriented programming, or OOP. This technology can create reusable components, which are the building blocks of programs.

Several definitions

When discussing Visual Basic, you often hear these terms, so it is very helpful to have a basic understanding of these terms.

Reusable objects that control the provider's visual interface. Examples of controls are text boxes, labels, and command buttons.

Actions triggered by the user or the operating system. Examples of events are keystrokes, mouse clicks, time limits, or receiving data from ports.

A method is a program code embedded in an object definition, which defines how an object processes information and responds to events. For example, a database object has a method to open a recordset and move it from one record to another.

The basic elements of an object program, including attributes that define its characteristics, define its tasks, and identify the events it can respond to. Controls and forms are examples of all objects in Visual Basic.

A code fragment written by a procedure to complete a task. Procedures are usually used to respond to specific events.

The characteristics of an attribute object, such as size, position, color, or text. Attributes determine the appearance and sometimes the behavior of an object. Properties are also used to provide data to and retrieve information from objects.