Learn C Programming - Second Edition: A beginner's guide to learning the most powerful and general-purpose programming language with ease

Szuhay, Jeff

  • 出版商: Packt Publishing
  • 出版日期: 2022-09-02
  • 售價: $1,800
  • 貴賓價: 9.5$1,710
  • 語言: 英文
  • 頁數: 742
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1801078459
  • ISBN-13: 9781801078450
  • 相關分類: C 程式語言
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

Get started with writing simple programs in C while learning core programming concepts

Key Features

- Learn essential C concepts such as variables, data structures, functions, loops, and pointers
- Grasp the core programming aspects that form the base of many modern programming languages
- Work with updated code samples and cover array declaration and initialization in detail in this new edition

Book Description

The foundation for many modern programming languages such as C++, C#, JavaScript, and Go, C is widely used as a system programming language as well as for embedded systems and high-performance computing. With this book, you'll be able to get up to speed with C in no time.

The book takes you through basic programming concepts and shows you how to implement them in the C programming language. Throughout the book, you'll create and run programs that demonstrate essential C concepts, such as program structure with functions, control structures such as loops and conditional statements, and complex data structures. As you make progress, you'll get to grips with in-code documentation, testing, and validation methods. This new edition expands upon the use of enumerations, arrays, and additional C features, and provides two working programs based on the code used in the book. What's more, this book uses the method of intentional failure, where you'll develop a working program and then purposely break it to see what happens, thereby learning how to recognize possible mistakes when they happen.

By the end of this C programming book, you'll have developed basic programming skills in C that can be easily applied to other programming languages and have gained a solid foundation for you to build on as a programmer.

What you will learn

- Implement fundamental programming concepts through C programs
- Understand the importance of creating complex data types and the functions to manipulate them
- Develop good coding practices and learn to write clean code
- Validate your programs before developing them further
- Use the C Standard Library functions and understand why it is advantageous
- Build and run a multi-file program with Make
- Get an overview of how C has changed since its introduction and where it is going

Who this book is for

If you're an absolute beginner who has basic familiarity with operating a computer, this book will help you learn the most fundamental concepts and practices that you need to know to become a successful C programmer. If you're an experienced programmer, you'll find the full range of C syntax as well as common C idioms covered in the book useful.

商品描述(中文翻譯)

開始學習C語言並掌握核心程式設計概念。

主要特點:
- 學習C的基本概念,如變數、資料結構、函式、迴圈和指標。
- 掌握形成許多現代程式語言基礎的核心程式設計方面。
- 在這本新版中,使用更新的程式碼範例,詳細介紹陣列的宣告和初始化。

書籍描述:
C語言是許多現代程式語言(如C++、C#、JavaScript和Go)的基礎,廣泛應用於系統程式設計、嵌入式系統和高性能計算。這本書將幫助您快速掌握C語言。

本書介紹了基本的程式設計概念,並示範如何在C語言中實現它們。在整本書中,您將創建並執行展示基本C概念的程式,例如具有函式的程式結構、迴圈和條件語句的控制結構,以及複雜的資料結構。隨著學習的進展,您將熟悉程式中的文件、測試和驗證方法。這本新版擴展了對列舉、陣列和其他C功能的使用,並提供了兩個基於書中使用的程式碼的工作程式。此外,本書使用有意的錯誤方法,您將開發一個可運行的程式,然後故意破壞它以觀察結果,從而學習如何在發生錯誤時識別可能的錯誤。

通過閱讀本書,您將在C語言中發展出基本的程式設計技能,這些技能可以輕鬆應用於其他程式語言,並為您作為一名程式設計師打下堅實的基礎。

學到什麼:
- 通過C程式實現基本的程式設計概念。
- 理解創建複雜資料類型及其操作函式的重要性。
- 養成良好的編碼習慣,學習撰寫乾淨的程式碼。
- 在開發程式之前驗證您的程式。
- 使用C標準程式庫函式,並了解其優勢。
- 使用Make建立並執行多檔程式。
- 瞭解C自引入以來的變化及其未來發展方向。

適合對象:
- 如果您是一個完全的初學者,對於操作電腦有基本的熟悉,這本書將幫助您學習成為一名成功的C程式設計師所需的最基本概念和實踐。如果您是一名有經驗的程式設計師,您會發現本書涵蓋了完整的C語法以及常見的C習慣用法。

目錄大綱

1. Running Hello, world
2. Understanding Program Structure
3. Working with Basic Data Types
4. Using Variables and Assignments
5. Exploring Operators and Expressions
6. Exploring Conditional Program Flow
7. Exploring Loops and Iterations
8. Creating and Using Enumerations
9. Creating and Using Structures
10. Creating Custom Data Types with Typedef
11. Working with Arrays
12. Working with Multi-dimensional Arrays
13. Using Pointers
14. Understanding Arrays and Pointers
15. Working with Strings
16. Creating and Using More Complex Structures
17. Understanding Memory Allocation and Lifetime
18. Using Dynamic Memory Allocation
19. Exploring Formatted Output
20. Getting Input From the Command Line
21. Exploring Formatted Input
22. Working with Files
23. Using File Input and File Output
24. Working with Multi-File Programs
25. Understanding Scope
26. Building Multi-File Programs with Make
27. Creating Two Card Programs
28. Appendix

目錄大綱(中文翻譯)

1. 執行 Hello, world
2. 理解程式結構
3. 使用基本資料類型
4. 使用變數和賦值
5. 探索運算子和表達式
6. 探索條件式程式流程
7. 探索迴圈和迭代
8. 建立和使用列舉
9. 建立和使用結構
10. 使用 Typedef 建立自訂資料類型
11. 使用陣列
12. 使用多維陣列
13. 使用指標
14. 理解陣列和指標
15. 使用字串
16. 建立和使用更複雜的結構
17. 理解記憶體配置和生命週期
18. 使用動態記憶體配置
19. 探索格式化輸出
20. 從命令列獲取輸入
21. 探索格式化輸入
22. 使用檔案
23. 使用檔案輸入和檔案輸出
24. 使用多檔案程式
25. 理解範圍
26. 使用 Make 建立多檔案程式
27. 建立兩個卡片程式
28. 附錄