The structure of C Programming
Summary: C language is a very good structured programming language, structured programming method can be summarized as top-down, stepwise refinement, modular, restrict the use of goto statements, the original more complex issues simplified as a series of simple module design, a program can use any logic sequence structure, selection structures and loop structures that describe the basic structure of 3.
Keywords: structured programming, sequential structure, selection structures, looping structures, algorithms
At present, the rapid development of computer technology, program design techniques from structured programming to object-oriented programming technology transition to a larger application, the overall framework is object-oriented programming structure take from, and still need to use when in the local implementation of structured programming techniques. C language is a good structured programming language, therefore, the author discusses the structure of C in the program design method.
Structured programming (STRUCTURED PROGRAMING, referred to as SP) concept is by the Dutch scholar E �� W. DUKSTRA and others in the late 20th century, made 60, the center is a modular design, the original more complex issues simplified as a series of simple module design, which is to - a large computing tasks into smaller tasks one by one, by the function of these small tasks to complete. The function can be either the standard C library functions. it can be customized function. In C, a C program of a certain size are often composed by a number of functions, of which there must be a main function called main, from the main to call other functions, if necessary, other functions can also call another function . the same function can be one or more function calls one or more times. module independence also expand the existing system, the establishment of the new system brings a lot of convenience, because we can make full use of existing modules for building blocks type of expansion.
The idea of structured programming is a program of any logical problems, can use the sequence structure, selection structures and loop structures that describe the basic structure of 3. Sequential structure of the program flow is based on the order of execution written statement, select the structure is to judge the given conditions, according to judge the outcome of the decision in the implementation of the two branches of a branch or branches of a branch of the loop structure is formed in the given conditions, circumstances, repeatedly execute a block. to achieve these program flow statements are flow control statements. flow control statements in the program plays an important role in the design, through the 3 basic control structure make the structure of the program has a unique population and export, there is no infinite loop, and program implementation in the form of static and dynamic form of good correlation between. in the C language, there are four kinds of statements are executed in the order: �� empty statement, the light has a semicolon, "" as a statement terminator, it means doing nothing. �� expression statement , an expression followed by a semicolon, expression statements are assignment statements, since the composition of addition and subtraction operators and the comma expression statement statement. �� function call statement, it is a function call with a semicolon composition. �� compound statement, the "{" and "}" and statements that some combination of variables together, also known as block. select statement with if statement and switch statement. loop statement are for, while and do-while statements, and ancillary processes such as turning statements continue, break, goto and so on. sequence structure, selection structures and loop structures of various complex programs together as the basic structural unit, from which three kinds of structures formed after repeated process is called the nested structure of the program, In other words, the structure of the program is composed of the basic structure of 3. But if the unrestricted use of the programming process the transfer statement (goto), will make a mandatory program control flow to jump forward or backward while disorder causes the program to follow the process, structure disorganized. structured the program to reduce the complexity of construction, improve reliability, testability and maintainability, the use of a small number of basic structure, you can make the program clear and logical structure and easy Read to understand, and easy to verify the correctness of the program. of - of people, beginning computer language. The most important thing is to have the correct program flow concept, not only to understand but also to flexible application. Thus, with structured designed structure is clearly conducive to the preparation of a structured program. so. structured programming method can be summarized as the main principles of top-down, stepwise refinement, modular, and limit the use of goto statements. the program design decomposition for the problem until it decomposed into a function correspond to a more simple and independent modules, each module and then decomposed into the 3 basic program structure. Links to Research Papers Download http://www.hi138.com essence, structured programming is to program the main emphasis. Program = algorithm + data structure + + program design language tools and the environment, which method is the soul. to solve the "what" and "how" question is the processing object data structure, language is a tool, programming needs to use the appropriate method. concrete steps to solve the problem include: �� analyze problems, find solutions to the problem of the model, �� According to the model design approach for the computer algorithm characteristics, �� programming processes to achieve algorithm, �� on the machine editing (. c), compiled (. obj), connect (. exe), run the compiled program until get the right result, �� to analyze the results, sorting out the written word.
Now people have realized that the task of programming is not just to write a program to get the correct results, should also consider the quality of the program. Otherwise it will make the program of poor quality, poor reliability, long development cycle, high maintenance costs, which is what we usually say that the "software crisis", it will seriously hamper the development of computer applications. As most of the high-level languages support structured programming methods, the grammar contains three kinds of basic structure, said the statement, so the use of structured programming modular structure designed to achieve is the direct conversion process, and just use the appropriate sentence structure can replace the standard control structures. Links http://www.hi138.com Research Papers Download
Newest Research Papers
- Newest
- Computer Theory Papers
- The rise of the Internet era to create a large network of integrated marketing value
- 2011 inventory of Chinese high-end liquor fatal short board and coping strategies
- Three-step Internet marketing is vital to every detail
- Incentives for commercial banks to discuss the management
- EVA on the impact of financial ratios to write papers _ Network _ net _ to write thesis papers Network
- For a number of biological assets accounting seminar
- The complexity of the accounting system and analysis of ideas
- "West River Economic Belt" building system and practice of monetary policy mechanism analysis
- Comprehensive evaluation of the evidence of earnings management analysis
- After the financial crisis on the global convergence of accounting standards and Enlightenment
- Analysis of accounting earnings quality dimensions: a theoretical framework
- Our analysis of corporate accounting risk transfer mechanism
- Analysis of protection of water resources and promote sustainable use of water resources
- Discussion on the Guanzhong - Tianshui economic analysis of the integrated development of Tourism
- On strengthening and improving ideological and political education
MOST POPULAR Computer Theory Papers
- 24Hours
- 7Days
- 30Days
- How to write a research paper?
- Hangzhou guide the work on the practice patterns of family education
- The quality of the military training of medical students
- "West River Economic Belt" building system and practice of monetary policy mechanism analysis
- Regarding the development of female entrepreneurship education students to write papers of significa
- The complexity of the accounting system and analysis of ideas
- Comprehensive evaluation of the evidence of earnings management analysis
- Liu Chang on: ordinary and great audio-visual pioneer
- Party Expo volunteer work during the student to write papers mechanism _ Network
- On the development of audio-visual promotion of school education reform _ paper to write network
- Discussion on the Guanzhong - Tianshui economic analysis of the integrated development of Tourism
- Stressors on ICU nurses and Countermeasures
- Students on full play the main role in the teaching of English
- About Vocational School of Health to develop education and training
- Amy Tan novel about mother-daughter relationship between culture _ paper to write network
- Hangzhou guide the work on the practice patterns of family education
- On the new curriculum of high school language teaching
- On Quju "lone elm house"
- On how sports psychology in the formation of child health
- Treatment of cervical scraping rubbing on back muscle strain of the clinical experience
- On the primary language curriculum reform humble opinion
- On the secondary school mathematics teaching poor students into thinking about the problem
- Stressors on ICU nurses and Countermeasures
- Students on full play the main role in the teaching of English
- About Vocational School of Health to develop education and training
- How mathematics teaching in primary schools to implement quality education
- Psychological Contract Perspective counselor burnout causes and Countermeasures
- Amy Tan novel about mother-daughter relationship between culture _ paper to write network
- On patients in rural junior high school chemistry experiment on the use of resources
- On the water project's construction cost control measures On the _ papers to write network
- Production of fine chemicals on vocational curriculum integration and reconstruction process