作者:empty 页数:169 出版社:empty |
Pascal is a procedural programming language, designed in 196Bandpublihedin1970by Nila us With and named inhonor of the French mathematician and philosopher Blaise Pascal.Pascal runs on a variety of platforms, such as Windows, MacOS.and various versions of UNIX/Linux.This tu to alwil give you great understanding of Pascal to proceed wiDe iphi and oter related frameworks, eteThis tutorial is designed for Software Professionals, who are wiling to learn Pascal Programming Language in simple andeasy steps, This tutorial wll give you great understanding on Pascal Programming concepts, and after comple ing thistutorial.you wil beat intermedia tcl e vcl of expertise from where you can take yourself to higher level of c xpertise.Before proceeding with this tutorial, you should have a basic understanding of software basic concepts like what is sourcecode, compiler, texted il or and execution of programs, elc.If you a ready have understanding on any other compu lerprogramming language, then it w llbean added advantage to proceed.If you are wi ing to learn the Pascal programming on a Linux machine but you do not have a setup for the same.then donot worry,thecompileonling.comis available on a high end dedicated server giving you real prag ramming expo rience witha comfort of single click compilation and execution.Yes!it is absolutely free and it's online.◎Allthecontentandgraphicsonthistutorialarethepropertyoftutorialspoit.com, Any content fromtutorialspoint.comor this tutorial may not be redistributed or reproduced in anyway, shape, or form without thewrittenpermissionoftutorialspoint.com.F allure to do sols a violation of copyright laws.This tutorial may contain inaccuracies or errors and tutorials point provides no guarantee regarding the accuracy ofthe site or its contents including this tutorial.Ifyoudiscoverthatthetutorialspoint.comsite or this tutorialcontent contains some errors,pleasecontactusatwebmaster@tutorialspoint.com
Audience.
Prerequisites.
Pascal Overview.
Facts about Pascal.
Why to use Pascal?.
Environment.
Installing Free Pascal on Linux
Installing Free Pascal on Mac
Installing Free Pascal on Window
TextEditor.
Program Structure.
Pascal HelloWorld Example.
Compile and Execute Pascal Program:
Basic Syntax.
Functions/Procedures
Comments.
Case Sensitivity.
Pascal Statements.
Reserved Words in Pascal.
Character set and Identifiers in Pascal.
DataTypes.
Pascal DataTypes.
Type Declarations.
Integer Types.
Constants.
Enumerated types.
Subrange Types.
Variable Types.
Basic Variables in Pascal.
Variable Declaration in Pascal.
Variable Initialization in Pascal.
Enumerated Variables.
Subrange Variables.
Constants.
Declaring Constants.
Operators.
Arithmetic Operators.
Relational Operators.
Boolean Operators.
Bit Operators.
Operators Precedence in Pascal.
DecisionMaking.
Syntax.
Flow Diagram:.
Example.
The if-then-elseif-then-else Statement.
Syntax.
Syntax.
Example.
Syntax.
Flow Diagram:
Example.
Syntax:.
Flow Diagram:
Example:.
Syntax:.
Example:.
Loops.
while-do loop.
Syntax.
Flow Diagram:.
Example.
For-do LOOP.
Syntax:.
Example.
Repeat-Until Loop.
Syntax.
For example.
Flow Diagram:.
Example.
Example:.
Loop Control Statements:.
Syntax.
Flow Diagram:.
Example:.
Syntax.
Flow Diagram:.
Example:.
Syntax.
Flow Diagram:.
Example:.
Functions.
Subprograms.
Functions.
Defining a Function:.
Function Declarations:.
Procedure.
Defining a Procedure:.
Procedure Declarations:.
Calling a Procedure:.
Recursive Subprograms.
Arguments of a Subprogram.
Variable Scope.
Local Variables.
Global Variables.
Strings.
Examples.
Pascal String Functions and Procedures.
Boolean.
Declaration of Boolean DataTypes.
Example.
Arrays.
Declaring Arrays.
Types of Array Subscript.
Initializing Arrays.
Accessing Array Elements.
Pascal Arrays in Detail.
Two-Dimensional Arrays:.
Initializing Two-Dimensional Arrays.
Accessing Two-Dimensional Array Elements:.
Declaring Dynamic Arrays.
Declaring Packed Arrays.
Pointers.
What Are Pointers?.
Printing a Memory Address in Pascal.
NILL Pointers.
Pascal Pointers in Detail:.
Incrementing a Pointer.
Decrementing a Pointer.
Pointer Comparisons.
Records.
Defining a Record.
Accessing Fields of a Record.
Records as Subprogram Arguments.
Pointers to Records.
The With Statement.
Variants.
Declaring a Variant.
Example.
Sets.
Defining Set Types and Variables.
Set Operators.
Example.
File Handling.
Creating and Writing to a File
Reading from a File.
Files as Subprogram Parameter
Text Files.
Appending to a File.
File Handling Functions.
Memory Management.
Allocating Memory Dynamically.
Resizing and Releasing Memory.
Memory Management Functions
Units.
Using Built-in Units.
Creating and Using a Pascal Unit.
DateTime.
Getting the Current Date&Time:.
Various Date&Time Functions:.
Objects.
Object Oriented Concepts.
Defining Pascal Objects.
Visibility of the Object Members.
Constructors and Destructors f