Название: An Introduction To C & GUI Programming, 2nd Edition Автор: Simon Long Издательство: Raspberry Pi Press Год: 29 November 2022 Страниц: 156 Язык: английский Формат: pdf (true) Размер: 10.1 MB
Freshly updated for GTK3, the 2nd edition of An Introduction to C & GUI Programming will teach you all you need to know to write simple programs in C and start creating GUIs, even if you’re an absolute beginner. The first half of the book is an introduction to C, and covers the basics of writing simple command-line programs. The second half shows how to use the GTK user interface toolkit with C to create feature-rich GUI applications which can be run on the desktop.
C is a very versatile and widely used programming language. It has been used to write pretty much everything, from low-level routines to control the hardware in embedded microcontrollers to complete operating systems like Linux with graphical user interfaces. In spite of this huge flexibility, it is also relatively simple – the language only has about 20 or so keywords, but there are huge libraries of additional functions that you can call on when you need them. In the first part of this book, we are going to concentrate on learning about the keywords, with a few of the more commonly used library functions; the second part of the book shows how to use the GTK library to make it easy to write graphical interfaces in C.
Many of the languages that you may have seen, such as Python, are what are called interpreted languages. This means that the code you write is run directly: each line of code is read in and interpreted as you run it. C is different: it’s a compiled language. This means that the code you write, known as the source code, is never run directly. The source code is passed through a program called a compiler, which converts it into a machine-readable version called an executable or a binary; you then run the resulting executable.
156 pages of essential information Create simple command-line C programs Control flow with conditions and loops Handle variables, strings, and files Design graphical user interface applications in C Handle user input with buttons and menus Use advanced UI features such as data stores and dialogs
Скачать An Introduction To C & GUI Programming 2nd Edition