C_GUI_Programming.pdf

(9203 KB) Pobierz
AN
INTRODUCTION
TO
PROGRAMMING
Simon Long
&
GUI
2
AN INTRODUCTION TO C AND GUI PROGRAMMING
AN INTRODUCTION TO
C
AND
GUI
PROGRAMMING
3
First published in 2019 by Raspberry Pi Trading Ltd, Maurice Wilkes Building,
St. John's Innovation Park, Cowley Road, Cambridge, CB4 0DS
Publishing Director: Russell Barnes • Editor: Phil King
Author: Simon Long • Design: Critical Media
CEO: Eben Upton
ISBN: 978-1-912047-65-9
The publisher, and contributors accept no responsibility in respect of any omissions
or errors relating to goods, products or services referred to or advertised in this book.
Except where otherwise noted, the content of this book is licensed under a Creative
Commons Attribution-NonCommercial-ShareAlike 3.0 Unported
(CC BY-NC-SA 3.0)
The GTK logo is copyright The GNOME Foundation and licensed under LGPL v2.1+
4
AN INTRODUCTION TO C AND GUI PROGRAMMING
AN INTRODUCTION TO
C
AND
GUI
PROGRAMMING
T
Welcome to
An Introduction to C
& GUI Programming
he C programming language was invented in the early 1970s, and since then has
become one of the most popular and widely used general-purpose languages. C can
be used to create simple command-line programs, or embedded code to operate the
tiny microcontrollers in toasters and watches. At the other extreme, it can be used to create
rich graphical desktop applications – in fact, most of Linux (and Raspbian itself) is written
in it. It can give you control over the smallest details of how a processor operates, but is still
simple to learn and read. The first part of this book is an introduction to programming in C for
absolute beginners; the second part shows how to use C to create desktop applications for
Raspbian, using the GTK toolkit. You don’t need any programming experience, and a Raspberry
Pi running Raspbian is all you need to get started.
5
Zgłoś jeśli naruszono regulamin