1 / 35

Hello World Pascal Tutorial

Hello World Pascal Tutorial. Nova Southeastern University Cristal Ber ó n-Locke. Obtaining the Software. Object Pascal is included on the disk that comes with Learn Pascal with Delphi , written by Warren Rachele. The book can be purchased for $49.95 from www.barnesandnoble.com .

Jimmy
Télécharger la présentation

Hello World Pascal Tutorial

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Hello WorldPascal Tutorial Nova Southeastern University Cristal Berón-Locke C. Locke

  2. Obtaining the Software • Object Pascal is included on the disk that comes with Learn Pascal with Delphi, written by Warren Rachele. • The book can be purchased for $49.95 from www.barnesandnoble.com. (ISBN 1-55622-719-1) C. Locke

  3. Before you begin to install, make sure that you exit all windows programs that are currently running. C. Locke

  4. Installing the Software • Place the disk into the CD-Rom drive (in many cases it is the D drive, however this may vary depending on the computer you are using). • Sometimes the program will begin the installation process on its own. If this happens, skip steps 3, 4, & 5. Instead, go to step 6. C. Locke

  5. Double click on My Computer on your desktop C. Locke

  6. Double click on the Object Pascal icon, which should be the same icon as your CD-ROM drive. C. Locke

  7. Double click on install.exe. C. Locke

  8. A blue screen will appear and on the left side there will be a message telling you to select a product to install. C. Locke

  9. Click on the Next button to continue. C. Locke

  10. Read the Software License Agreement and click on Yes to continue. C. Locke

  11. Click on Next to continue. C. Locke

  12. After Object Pascal has been installed, restart your computer. • Choose the Typical installation and then click Next. C. Locke

  13. Starting the Program • Click on the Start button on the lower left hand side of your screen. • Go to Programs, then to Delphi, and finally click on Delphi 5. C. Locke

  14. The program will begin and a screen will appear like the one below. C. Locke

  15. Building a Template • Click on the x on the upper right hand corner of the Form 1 window. C. Locke

  16. Close the Unit1.pas screen by clicking on the x in the upper right hand corner of the window. • When asked if you want to save the changes made, click no. C. Locke

  17. Select Project from the Delphi 1 window and then View Source. C. Locke

  18. A window will appear titled project project1.dpr. Delete all of the text in that window and type the following. program template; begin end. C. Locke

  19. Click on File and then Save Project As from the menu at the top of the screen. C. Locke

  20. Name the file template and leave the extension as .dpr. C. Locke

  21. Click on Project and then Options from the menu. C. Locke

  22. Click on the tab called Linker. • Click on the square that says Generate console application. • Click on OK. C. Locke

  23. Click on Project and then Add to Repository from the menu at the top of the screen. C. Locke

  24. Type in under Title: Console Application • Type under Description: Template for console application • Type under Page: Projects • Type under Author: Your Name C. Locke

  25. Now in order to confirm that all of the steps have been performed successfully, click on File and then Close All from the menu. • Select yes to save changes. C. Locke

  26. Click on the tab named Projects, click on Console Applications, and then click OK. • You are now ready to begin programming! • Click on File and then New from the menu to bring up the New Items window. C. Locke

  27. Hello World Program • Type the following into your template window: program helloworld; begin writeln (‘Hello World!’); writeln (‘This is my first Pascal program.’); readln; end. C. Locke

  28. Click on Run and then Run from the menu at the top of the screen. C. Locke

  29. Your first program will run on a DOS based screen. • In order to exit the program, hit any key. C. Locke

  30. Saving Your Program After all of that work, I have to assume you want to save your work of art! Saving your work is important so that you will not have to start over when you return. C. Locke

  31. Click on File and then Save Project As from the menu at the top of the screen. C. Locke

  32. A small Save As screen will open. It is waiting for further instructions on what you want to name your design. Type helloworld in the File name: box. C. Locke

  33. Learn More Delphi Object Pascal has a built in Quick Start Tutorial that can be accessed from the Help drop down menu at the top of the screen. The tutorial is easy to follow and will guide you on how to create more programs. It will also give you a few more commands that you can try on in your own programs. C. Locke

  34. Contact Information Cristal Locke can be contacted through e-mail at beroncn@nova.edu or through http://tucker.dade.k12.fl.us/classrooms/Locke/gifted.htm This tutorial was created on February 10, 2002. C. Locke

  35. More Important Have fun trying new programs. More codes can be found and downloaded at: http://www.dickmann.org/ http://www.negifreebee.com/nfbfprg.html Maybe one day I will be purchasing one of your home-made programs! C. Locke

More Related