Read Count: Fundamentals of Computer Programming with C by Svetlin Nakov,Veselin Kolev Book Resume: The free book "Fundamentals of Computer Programming with C " is a comprehensive computer programming tutorial that teaches programming, logical thinking, data structures and algorithms, problem solving and high quality code with lots of examples in C. It starts with the first steps in programming and software development like variables, data types, conditional statements, loops and arrays and continues with other basic topics like methods, numeral systems, strings and string processing, exceptions, classes and objects. After the basics this fundamental programming book enters into more advanced programming topics like recursion, data structures lists, trees, hash-tables and graphs , high-quality code, unit testing and refactoring, object-oriented principles inheritance, abstraction, encapsulation and polymorphism and their implementation the C language. It also covers fundamental topics that each good developer should know like algorithm design, complexity of algorithms and problem solving. It teaches the major programming concepts and way of thinking needed to become a good software engineer and the C language in the meantime.

Author:Nikom Moogugal
Language:English (Spanish)
Published (Last):6 September 2005
PDF File Size:6.22 Mb
ePub File Size:12.41 Mb
Price:Free* [*Free Regsitration Required]

Writing your first Delphi program Different types of application Delphi allows you to create GUI Graphical User Interface or Console text-only applications programs along with many other types. We will concern ourselves here with the common, modern, GUI application. Delphi does a lot of work for us - the programmer simply uses the mouse to click, drag, size and position graphical parts to build each screen of the application.

Each part or element can be passive displaying text or graphics , or active responding to a user mouse or keyboard action. These actions can help you with your blog hosting as well. This is best illustrated with a very simple program. This comprises a number of windows, including the menu bar, a code editor, and the first screen form of our program. Do not worry about the editor window at the moment. The form should look something like this : We have shown the form reduced in size for convenience here, but you will find it larger on your computer.

It is a blank form, onto which we can add various controls and information. The menu window has a row of graphical items that you can add to the form. They are in tabbed groups : Standard, Additional, Win32 and so on. We will select the simplest from the Standard collection.

Click on the A image to select a Label. This A will then show as selected: Having selected a graphical element, we then mark out on the form where we want to place the element. This is done by clicking and dragging.

This gives us our first form element: Changing graphical element properties Notice that the graphical element contains the text Label1 as well as resize corners. The text is called the Caption, and will appear when we run the application. This Caption is called a Property of the label. The label has many other properties such as height and width, but for now, we are only concerned with the caption.

Let us blank out the caption. We do this in the window called the Object Inspector available under the View menu item if not already present : Adding an active screen element If we now return to the Standard graphical element collection, and select a button, shown as a very small button with OK on it, we can add this to the form as well: We now have a label and a button on the form.

But the button will do nothing when pressed until we tell Delphi what we want it to do. So we must set an action, called an Event, for the button. The main event for a button is a Click. This can be activated simply by double clicking the button on the form.

We must add some code. Code that we add will run when the button is clicked. So let us change the label caption when the button is pressed. As we type, Delphi helps us with a list of possible options for the item we are working on. In our instance, we are setting a Label caption: Here you see that Delphi has listed all appropriate actions that start with ca.

If we press Enter, Delphi will complete the currently selected item in the list. Note that we terminate this line of code with a ; - all Delphi code statements end with this indicator. It allows us to write a command spread across multiple lines - telling Delphi when we have finished the command. Running our first program To run the program, we can click on the Green triangle like a Video play button , or press F9.

When the program runs it looks like this: When we click on the button, we get: and our program has set the Label text as we requested.

Note that the program is still running. We can click as many times as we like with the same outcome. Only when we close the program by clicking on the top right X will it terminate. Looking at the code that Delphi generated Whilst we have only typed one line of code, Delphi has typed many for us. Let us first look at the main program code.

These are ignored by the Delphi compiler, but help the coder understand the code. You can click on any word marked in blue to see reference information for that word:.



Целевая платформа[ править править код ] Изначально среда разработки Delphi была предназначена исключительно для разработки приложений Microsoft Windows , затем был реализован вариант для платформ Linux под торговой маркой Kylix , однако после выпуска в году Kylix 3 его разработка была прекращена, и вскоре было объявлено о поддержке Microsoft. NET , которая, в свою очередь, была прекращена с выходом Delphi Независимая, сторонняя реализация среды разработки проектом Lazarus Free Pascal , в случае компиляции в режиме совместимости с Delphi позволяет использовать его для создания приложений на Delphi для таких платформ, как Linux, Mac OS X и Windows CE. Философия и отличия от популярных прикладных языков программирования[ править править код ] При создании языка и здесь качественное отличие от языка C не ставилось задачи обеспечить максимальную производительность исполняемого кода или лаконичность исходного кода для экономии оперативной памяти. Изначально язык ставил во главу угла стройность и высокую читаемость, поскольку был предназначен для обучения дисциплине программирования. Эта изначальная стройность в дальнейшем, как по мере роста аппаратных мощностей, так и в результате появления новых парадигм, упростила расширение языка новыми конструкциями.


Understanding the Basics of Delphi Programming

Samunris Net class pages — 44 methods each with examples illustrated with graphical output Printing of pages precisely to any paper size or format RTL lists printable by letter, function, unit or category History drop-down of recent and popular RTL pages Database tutorials, not available on this web site Copy full text copy is enabled at last the secret revealed by a user Download the Windows program: The name field is required. Citations are progdamming on reference standards. Add a review and share your thoughts with other readers. Contact me using neil dot moffatt at ntlworld.

Related Articles