Edition |
Version 1.09. |
Description |
1 online resource (vi, 122 pages) : illustrations. |
|
text file |
|
PDF |
Series |
Open Textbook Library |
|
Open Textbook Library.
|
Note |
Title from PDF. Description based on online version (viewed November 20, 2018). |
Contents |
1. The way of the program. What is a programming language? ; What is a program? ; What is debugging? ; Formal and natural languages ; The first program ; Glossary ; Exercises -- 2. Variables and types. More output ; Values ; Variables ; Assignment ; Outputting variables ; Keywords ; Operators ; Order of operations ; Operators for characters ; Composition ; Glossary ; Exercises -- 3. Function. Floating-point ; Constants ; Converting from double to int ; Math functions ; Composition ; Adding new functions ; Definitions and uses ; Programs with multiple functions ; Parameters and arguments ; Parameters and variables are local ; Functions with multiple parameters ; Functions with results ; Glossary ; Exercises -- 4. Conditionals and recursion. Conditional execution ; The modulus operator ; Alternative execution ; Chained conditionals ; Nested conditionals ; The return statement ; Recursion ; Infinite recursion ; Stack diagrams for recursive functions ; Glossary ; Exercises -- 5. Fruitful functions. Return values ; Program development ; Composition ; Boolean values ; Boolean variables ; Logical operators ; Bool functions ; Returning from main() ; Glossary ; Exercises -- 6. Iteration. Multiple assignment ; Iteration ; The while statement ; Tables ; Two-dimensional tables ; Encapsulation and generalization ; Functions ; More encapsulation ; Local variables ; More generalization ; Glossary ; Exercises -- 7. Arrays. Increment and decrement operators ; Accessing elements ; Copying arrays ; for loops ; Array length ; Random numbers ; Statistics ; Array of random numbers ; Passing an array to a function ; Counting ; Checking the other values ; A histogram ; A single-pass solution ; Random seeds ; Glossary ; Exercises -- 8. Strings and things. Containers for strings ; String variables ; Extracting characters from a string ; Length ; Traversal ; Finding a character in a string ; Pointers and Addresses ; String concatenation ; Assigning new values to string variables ; strings are not comparable ; Character classification ; Getting user input ; Glossary ; Exercises -- 9. Structures. Compound values ; Point objects ; Accessing member variables ; Operations on structures ; Structures as parameters ; Call by value ; Call by reference ; Rectangles ; Structures as return types ; Passing other types by reference ; Glossary ; Exercises -- A. Coding style. A short guide on style ; Naming conventions and capitalization rules ; Bracing style ; Layout -- B. ASCII-Table. |
Note |
This book is an Open Source Textbook (OST). Permission is granted to reproduce, store or transmit the text of this book by any means, electrical, mechanical, or biological, in accordance with the terms of the GNU General Public License as published by the Free Software Foundation (version 2). |
Local Note |
Promoted: Local to Global Cooperative Open Textbook Library |
Subject |
C (Computer program language)
|
|
Computer programming.
|
|
Programming languages (Electronic computers)
|
|
C (Computer program language) (OCoLC)fst00843279
|
|
Computer programming. (OCoLC)fst00872390
|
|
Programming languages (Electronic computers) (OCoLC)fst01078704
|
Added Author |
Scheffler, Thomas.
|
|