free papers,research papers,free term paper samples

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

MOST POPULAR Computer Theory Papers

  • 24Hours
  • 7Days
  • 30Days