An Introduction to C & GUI Programming
Book information
Description
The popular C programming language is used for a huge range of applications, from the tiny microcontrollers used in toasters and watches up to complete operating systems. The first half of this book is an introduction to C, and covers the basics of writing simple command-line programs. The second half of the book shows how to use the GTK user interface toolkit with C to create feature-rich GUI applications which can be run on the desktop. No previous experience of C or GTK is required – even if you are an absolute beginner, this book will teach you all you need to know to ... ■ 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 Chapter 1: Getting started 010 Learn how to use C to program the Raspberry Pi Chapter 2: Variables and arithmetic 014 Create variables and do maths Chapter 3: Conditions and comparisons 019 Control the flow of your C programs Chapter 4: More advanced flow control 024 For loops and case statements Chapter 5: Pointers 030 Variables have addresses too Chapter 6: Functions 035 Split your code into bite-sized chunks Chapter 7: Arrays and strings 041 Handle lists of values, and letters Chapter 8: The string l;ibrary 046 Simplify common operations on strings Chapter 9: User Input 052 Reading and interpreting user input Chapter 10: File input and output 058 Learn to read from and write to files Chapter 11: More about types and variables 063 Type definitions, enumerations, and more Chapter 12: Header files and the preprocessor 068 Splitting code up into multiple files Chapter 13: Introduction to GTK 074 Get ready to start creating GUIs Chapter 14: Your first GTK program 077 Start coding in C with the GTK library Chapter 15: Buttons 081 Make your window more interesting by adding a button Chapter 16: Labels and layout 085 Use a box widget to add a text label to your window Chapter 17: More advanced layout 091 Expand your window, and position and resize buttons automatically Chapter 18: GUI user input 097 Enable users to enter text and select options Chapter 19: Combo boxes and list stores 103 Create combo boxes for user input and associate list stores with them Chapter 20: Tree views 109 Use the GtkTreeView widget to display information Chapter 21: Menus 115 Create menu bars with drop-down menus Chapter 22: Dialogs 120 Give users information and ask them questions Chapter 23: Built-in dialogs 123 GTK contains some ready-made dialogs Chapter 24: Customising widgets 131 Change the properties of widgets Chapter 25: Glade 135 Create window layouts for applications Chapter 26: C quick reference 144 Cheat sheets and code examples
Similar books
Język C. Szkoła programowania. Wydanie VI
2016 · PDF
Język C. Szkoła programowania. Wydanie VI
2016 · EPUB
Język C dla mikrokontrolerów AVR. Od podstaw do zaawansowanych aplikacji. Wydanie II
2015 · EPUB
Język C dla mikrokontrolerów AVR. Od podstaw do zaawansowanych aplikacji. Wydanie II
2015 · PDF
Język C dla mikrokontrolerów AVR. Od podstaw do zaawansowanych aplikacji. Wydanie I [jezykC]
2011 · PDF
Język C dla mikrokontrolerów AVR. Od podstaw do zaawansowanych aplikacji. Wydanie I [jezykC]
2011 · EPUB
Język ANSI C. Programowanie
2010 · PDF
Cryptography in C and C++ (2nd ed.)
2005 · PDF