Landasan teori yang di pakai apa sih, biar kita tidak bengong dan hampa ketika ada melakukan coding (gara gara gak tahu alur dan logikanya )
Tutorial 1 - The First Program
will explain what Free Pascal and Lazarus is. A console Hello World program will be created, saved, and compiled into an executable program.
Tutorial 2
This tutorial will go over the order of operations PEMDAS (Please Excuse My Dear Aunt Sally) and show how to print math equations on the screen.
Tutorial 3
This tutorial will show how to format text using commas and constants
Tutorial 4
User input and data types are the fundamentals of a computer program.
Tutorial 5
If statements check to see if a condition is met. If the condition is met then the computer will execute the instructions within the if statement.
Tutorial_6
Loops are useful for having the computer repeat commands over and over. There are three types of loops for Free Pascal. The loops include the While Loop, Repeat Until and the For Loop.
Tutorial 7
At this point in the tutorial series, we can start putting programs together from the previous tutorials.
Tutorial 8
We will use the classic game Guess My Number. It is a very boring game to play, by today’s standards, but programing the game can be interesting.
Tutorial 9
Case statements are similar to If statements. The difference is that the case statement can make the code simpler to read and work with. In some computer languages and computer systems, the case statements run faster than the If statements.
Tutorial 10
Arrays hold lists of variables of the same data type. When there are large lists of variables and data, it is easier to contain the data in an array than have large amounts of separate variables to hold the data.
Tutorial 11
Multi-Dimensional Arrays are two or more arrays that are combined into one. Some examples of a situation where a multi-dimensional array might be used would be a chess board, grid, or a deck of cards.
Tutorial 12
As programs become more advanced placing all the code in the main program can make the program more difficult to program, maintain, and understand. Slicing the program into procedures can help.
Tutorial 13
Functions are just like procedures, with one main exception. Functions return a value.
Tutorial 14
A record is a data type created by the user. A record can group variables of different types and properties together.
15
This program uses records as a demonstration on how they can be used in a roll playing game. This program is just a demonstration and not a true RPG game. If you wish, you can use this code and logic to create one.
16
The Lazarus IDE works with Windows, Mac OS X, Linux and FreeBSD. Other OS maybe supported in the future. This makes porting applications, from one OS to another, very easy. The IDE and coding for GUI Apps are very similar to Delphi.
17
In the previous tutorial, a "Hello World" style application was built. This tutorial will take that program and expand on it to show how to use events and change properties within an application.
18
This tutorial shows how to create an application that shows a philosophical algorithm regarding the meaning of life that the computer can perform. This is not to be taken too seriously. This is just a fun way of creating an application that uses what we have learned.
19
There is some discussion on using Hungarian Notation within the programming community. The idea of Hungarian Notation is to organize how things are named and bring some uniformity to how the program is written. However, if Hungarian Notation is overused this can complicate the code and lead to longer development times. This situation can be especially true when programming in Pascal. Pascal has a very eloquent, English-Like, syntax and Hungarian Notation make the code look more like C++ than Pascal. If this occurs, much of the reasoning to use Pascal will be lost.
20
User input with editboxes are entered as a string datatype. The computer can not perform calculate using strings. The computer needs numbers in an integer or floating point datatype to make mathematical calculations. The solution is to convert the string into a integer of floating point number, perform the calculation, then convert the calculation back to a string so it can be displayed in the editbox or label.
21
RadioButtons hold a boolean value of either true or false. Normally, RadioButtons are placed in groups.
22
The application used in Tutorials 18, 19, 20 crashes, or comes up with confusing error messages, if a non-number is entered into the calculator.
23
We can make this situation more user friendly by using an error catching technique.
23
This tutorial uses the system timer to bounce a ball around a window. The tutorial also shows the Mac X port of Lazarus.
24\3
Tutorial 23 takes the code from Tutorial 22 and creates 3 parallel arrays to bounce 6 balls around the window.
Tutorial 24 is the overview of the application that will be created from tutorial 24 - Tutorial 32.
25
This tutorial shows how to draw on the form’s canvas.
26
Using randomize commands the applicaton can take the numbers generated an draw clock hands based upon those numbers.
Tutorial 27
sets the application to accept user input and shows to to set tabs to make user input more friendly.
28
The MMSystem will be used to play sounds in Windows and the TProcess with afplay will be used to play sounds in Mac. Wav files will be used.
Tutorial 29 shows how to create and show a splash screen.
30
Let’s say that the application was tested by some teachers and they would like it muted. That’s a good idea, so let’s allow the user to mute the sound.
Tutorial 31 shows how to insert icons into the application.
Tutorial 32 - Wrap Up and Program Properties
The application will undergo some testing to check for errors and crashing. There are several errors that have to be corrected. Once the errors are corrected, then the program properties will be created and the program distributed.
Tutorial 2 - Printing Math
Tutorial 3 - Formatting Lines
Tutorial 4 - Data Types and User Input
Tutorial 5 - If Statements
Tutorial 6 - Loops
Tutorial 7 - Guess My Number
Tutorial 8 - Case Statements
Tutorial 9 - Arrays
Tutorial 10 - Multi-Dimensional Arrays
Tutorial 11 - Making Procedures
Tutorial 12 - Making Functions
Tutorial 13 - On The Record
Tutorial 14 - Using Records for a Roll Playing Game
Tutorial 15 - Starting Windows, Mac and Linux GUI Programming
Tutorial 16 - Events and Properties
Tutorial 17 - Programming The Meaning of Life
Tutorial 18 - Hungarian Notation and Creating the GUI Window
Tutorial 19 - String Conversions and Calculations
Tutorial 20 - RadioButtons
Tutorial 21 - Error Handling
Tutorial 22 - System Timer
Tutorial 23 - Parallel Arrays
Tutorials 24 - Overview
Tutorial 25 - Canvas Drawing with Pen, Brush and Colors
Tutorial 26 - Randomizing Clock Hands
Tutorial 27 - User Input and Tabs
Tutorial 28 - Sound and Music
Tutorial 29 - Splash Screen
Tutorial 30 - Changing Cursors and Muting Sound
Tutorial 31 - Icons
http://www.schoolfreeware.com/Free_Pascal_Tutorials.html
Untuk pemrograman lebih lanjut bisa kunjungan balik ke tempat saya, gan.
BalasHapusDapatkan buku2 pemrograman terbaru.
honbookstore.com
Salam kenal