Structured Programming with C++
Publisher: Bookboon.com
Published: 2013
ISBN-13: 9788740300994
Table of contents: title: Content; title: 1. Introduction to Programming; title: 1.1. What Does It Mean to Program; title: 1.2. Coding; title: 1.3. Compiling and linking; title: 1.4. The First Steps with Visual C++; title: 2. Variables; title: 2.1. Introduction; title: 2.2. Why Variables; title: 2.3. Declaring Variables; title: 2.4. Assignment; title: 2.5. Initiating Variables; title: 2.6. Constants; title: 2.7. More about Assignment of Values; title: 2.8. The main function; title: 2.9. Input and Output; title: 2.10. An Entry Program; title: 2.11. Formatted Output; title: 2.12. Invoice Program; title: 2.13. Time Conversion Program; title: 2.14. Type Conversion; title: 2.15. The Random Number Generator; title: 2.16. Game Program; title: 2.17. Summary; title: 2.18. Exercises; title: 3. Selections and Loops; title: 3.1. Introduction; title: 3.2. Selection; title: 3.3. if statement; title: 3.4. Price Calculation Program; title: 3.5. Comparison Operators; title: 3.6. Even or Odd; title: 3.7. else if; pagenum: )
label: 3.8. and (&&), or (; title: 3.9. Conditional Input; title: 3.10. The switch statement; title: 3.11. Menu Program; title: 3.12. Loops; title: 3.13. The while Loop; title: 3.14. The for Loop; title: 3.15. Addition Program; title: 3.16. Double Loop; title: 3.17. Roll Dice; title: 3.18. Two Dice Roll; title: 3.19. Breaking Entry with Ctrl-Z; title: 3.20. Pools; title: 3.21. Equation; title: 3.22. Interrupting a Loop - break; title: 3.23. Summary; title: 3.24. Exercises; title: 4. Arrays; title: 4.1. Introduction; title: 4.2. Why Arrays; title: 4.3. Declaring an Array; title: 4.4. Initiating an Array; title: 4.5. Copying an Array; title: 4.6. Comparing Arrays; title: 4.7. Average; title: 4.8. Sales Statistics; title: 4.9. Product File, Search; title: 4.10. Two-Dimensional Array; title: 4.11. Sorting; title: 4.12. Searching a Sorted Array; title: 4.13. Summary; title: 4.14. Exercises; title: 5. Strings; title: 5.1. Introduction; title: 5.2. Data Type char; title: 5.3. Menu Program; title: 5.4. Menu Program with Loop; title: 5.5. Christmas Tree; title: 5.6. int - char; title: 5.7. Å, Ä, Ö; title: 5.8. String Array, char[]; title: 5.9. Length of a String; title: 5.10. Upper/Lower Case; title: 5.11. Initials; title: 5.12. Comparing Two Strings; title: 5.13. Copying Strings; title: 5.14. Array with String Arrays; title: 5.15. Sorting Strings; title: 5.16. Substring; title: 5.17. Concatenating Strings; title: 5.18. Interchanging First Name and Surname; title: 5.19. Encryption; title: 5.20. Random Password; title: 5.21. Translation Table; title: 5.22. Summary; title: 5.23. Exercises; title: 6. Functions; title: 6.1. Introduction; title: 6.2. What Is a Function; title: 6.3. Average; title: 6.4. Calling a Function; title: 6.5. Several return Statements; title: 6.6. Least of Three Numbers; title: 6.7. Least Item of an Array; title: 6.8. Array As Parameter; title: 6.9. Function and Subfunction; title: 6.10. Function without Return Value; title: 6.11. Replacing Characters in a String; title: 6.12. Declaration Space; title: 6.13. The Word Program; title: 6.14. Override Functions; title: 6.15. Declaration - Definition; title: 6.16. Header Files; title: 6.17. Reference Parameters; title: 6.18. Parameters with Default Values; title: 6.19. Recursive Functions; title: 6.20. Summary; title: 6.21. Exercises; title: 7. Files; title: 7.1. Introduction; title: 7.2. Streams; title: 7.3. Reading from a Stream; title: 7.4. Writing to a Stream; title: 7.5. Attaching a File to a Stream; title: 7.6. A Complete Write Program; title: 7.7. A Complete Reading Program; title: 7.8. New Item at the End of the File; title: 7.9. Products and Prices; title: 7.10. Search for a Product Price; title: 7.11. Sorting a File in Memory; title: 7.12. Updating File Content; title: 7.13. Copying Files; title: 7.14. Summary; title: 7.15. Exercises; title: 8. Pointers; title: 8.1. Introduction; title: 8.2. What Is a Pointer; title: 8.3. Declaring a Pointer; title: 8.4. Assigning Values to Pointers; title: 8.5. Addresses and char Pointers; title: 8.6. cout and char Pointers; title: 8.7. Price Program with Pointers; title: 8.8. Pointer Arithmetics; title: 8.9. Tax Program; title: 8.10. Functions and Pointers; title: 8.11. Dynamic Memory; title: 8.12. Summary; title: 8.13. Exercises; title: 9. Structures; title: 9.1. Introduction; title: 9.2. What Is a Structure; title: 9.3. Defining a Structure; title: 9.4. Declaring and Initiating Structure Variables; title: 9.5. Assigning Values to Structure Members; title: 9.6. A Structure Program; title: 9.7. Array with Structure Variables; title: 9.8. Pointer to Structure; title: 9.9. Structures in the Dynamic Memory; title: 9.10. Structure As Function Parameter; title: 9.11. Summary; title: 9.12. Exercises; title: 10. Answers; title: 11. Variables; title: 12. Selections and Loops; title: 13. Arrays; title: 14. Strings; title: 15. Functions; title: 16. Files; title: 17. Pointers; title: 18. Structures