PDA

View Full Version : Pascal Tutorial



EliteHussar
02-06-2010, 11:12 PM
Programming Tutorial (http://learnbyexamples.org)
Pascal Tutorial 1 – The First Few steps in Pascal Programming
Programming Basics In a program, you must always obey the rules of the language, in our case, the Pascal language. A natural language has its own grammar rules, spelling and sentence construction. The Pascal programming language is a high level language that has its own syntax rules and grammar rules. As you go along with the lessons, you must note what you can do and what you cannot do in writing a Pascal program. A very simple program is shown below:

Pascal Tutorial 1 – The First Few steps in Pascal Programming (http://learnbyexamples.org/pascal/pascal-tutorial-1-the-first-few-steps-in-pascal-programming.html)

EliteHussar
02-06-2010, 11:13 PM
Programming Tutorial (http://learnbyexamples.org)
Pascal Tutorial 2 – Variables, Constants and the Assignment Statement
This lesson will cover:
String Variables
Constants and the Assignment Statement
String Variables Soon, you should learn how to input text by the user using ‘string variables‘. The following program is written showing an example of a string variable, prompting the user to input his name, whatsoever:

Pascal Tutorial 2 – Variables, Constants and the Assignment Statement (http://learnbyexamples.org/pascal/pascal-tutorial/pascal-tutorial-2-variables-constants-and-the-assignment-statement.html)

arthurprs
03-06-2010, 01:25 AM
Nice :)

makes me remember the good old days when i was learning :D

Ñuño Martínez
04-06-2010, 08:53 AM
Thanks. :)

EliteHussar
25-08-2010, 01:42 PM
Programming Tutorial (http://learnbyexamples.org)
Pascal Tutorial 3 – Special Reserved Words of the CRT Unit: ClrScr(), GotoXy(), etc…
Before I teach you the if statements and for loops, I would like to give you an idea of some pascal functions which are quite useful. This would require your program to include the library ‘crt.tpu‘. To include a library in the program, one should use the reserved word ‘uses‘, because it is used to call a library of functions and procedures. Here is the program of lesson 2 (program 3) which is better handled and more user-friendly:
Pascal Tutorial 3 – Special Reserved Words of the CRT Unit: ClrScr(), GotoXy(), etc… (http://learnbyexamples.org/pascal/pascal-tutorial/pascal-tutorial-3-special-reserved-words-of-the-crt-unit-clrscr-gotoxy-etc.html)

WILL
26-08-2010, 01:18 AM
Nice work. It's good to have these tutorials around. :)