Skip to content
EntityQ1418502· pop 38· linked from 575 articles

程序編程

Sign in to save

programming paradigm

Described at

Procedural Programming — Definition & Overview • DeepSource

Procedural programming is a programming paradigm built around the idea that programs are sequences of instructions to be executed.

deepsource.com

Procedural programming is a programming paradigm built around the idea that programs are sequences of instructions to be executed. They focus heavily on splitting up programs into named sets of instructions called procedures, analogous to functions. A procedure can store local data that is not accessible from outside the procedure's scope and can also access and modify global data variables. Some of the earliest procedural programming languages were Fortran and ALGOL . Ideas developed in ALGOL are very much relevant and prevalent in modern-day programming languages. Programs are composed of sequences of instructions. Minimal abstraction is present between the code and the machine. Procedures, which are logical blocks consisting of groups of instructions, can be invoked from other places in the code. A procedure can accept arguments and return values to the caller. Additionally, functions can access and modify variables in the global scope. Procedural languages follow structured programming practices and use block-based control flow rather than goto commands.

Excerpt from a page describing this subject · 2,855 chars · not written by Vinony

Article · 中文

过程式程序设计(英語:Procedural programming),又稱过程化編程,一種編程典範,衍生自指令式編程,有時會被視為是同義語。主要要採取过程调用或函数调用的方式來進行流程控制。流程則由包涵一系列運算步驟的过程(Procedures),例程(routines),子程序(subroutines), 方法(methods),或函式(functions)來控制。在程式執行的任何一個時間點,都可以呼叫某個特定的程序。任何一個特定的程序,也能被任意一個程序或是它自己本身呼叫。 最初的主要过程式编程语言出现在大约1957年至1964年,包括Fortran、ALGOL、COBOL、PL/I和BASIC,后来的Pascal和C发表于大约1970年至1972年。

Abstract from DBpedia / Wikipedia · CC BY-SA