Difference between revisions of "Program"

From Free Pascal wiki
Jump to navigationJump to search
m
Line 5: Line 5:
 
[[Category:Pascal]]
 
[[Category:Pascal]]
 
=Example=
 
=Example=
//</syntaxhighlight lang="Pascal">
+
</syntaxhighlight lang="Pascal">
 
program project1;  {$R *.res}
 
program project1;  {$R *.res}
 
begin
 
begin
 
   writeLn('demo of program');
 
   writeLn('demo of program');
 
end.
 
end.
// </syntaxhighlight>
+
</syntaxhighlight>

Revision as of 13:45, 30 October 2017

Deutsch (de) English (en) suomi (fi) français (fr) Bahasa Indonesia (id) italiano (it) português (pt) русский (ru)

A program is either an executable program, that is, the complete and runnable application, or it is that portion of a Pascal Source code file or files that can be compiled and is not declared to be a unit. This is sometimes referred to as the main program.

Example

</syntaxhighlight lang="Pascal"> program project1; {$R *.res} begin

 writeLn('demo of program');

end. </syntaxhighlight>