Procedures and functions in Turbo Pascal
A. The concept of procedural programming
When the program is already too long made hundreds and even tens of thousands of lines, so that we have difficulties to understand the way the program as a whole, there is a good idea if the program into several parts that are usually referred to as a module, subprogram, or subrutin. The concept of this kind usually called procedural programming. In this paper the next word will be used so that the module more concise. Turbo Pascal is used in this experiment is a version 7.1, when you use Turbo Pascal 7.0 then the process is not much different.
Split the program into modules will certainly easier to find errors, and to improve the documentation. Making Turbo Pascal module divided in two types, namely: Procedures and Functions. Procedure or function module is a program that is separate from the main program, placed in a block that functions as part of the program. Each procedure begins with the word backup (reserver word) procedure, while the function begins with the word backup Function.
Procedure or function used in the structured program, because:
1. The application of the concept is modular, namely split the program into modules or subprogram-subprogam the more simple.
2. For things are often done repeatedly, is written only once in the procedure and can be called or used at any time if needed.
Download Full paper: Procedures and Functions in Turbo Pascal
Sumber:Ilmu komputer
Michael Saylor Siap “Meracuni” Microsoft dengan Bitcoin?
-
(adsbygoogle = window.adsbygoogle || []).push({}); Dunia kripto kembali
dihebohkan dengan kabar terbaru dari Michael Saylor, CEO MicroStrategy yang
dikena...
6 days ago
0 komentar:
Post a Comment