Sams Teach Yourself C Programming in One Hour a Day, 7/e (Paperback)
暫譯: Sams 一天學會 C 程式設計(第七版)

Bradley L. Jones

相關主題

商品描述

Sams Teach Yourself C Programming in One Hour a Day, Seventh Edition is the newest version of the worldwide best-seller Sams Teach Yourself C in 21 Days. Fully revised for the new C11 standard and libraries, it now emphasizes platform-independent C programming using free, open-source C compilers. This edition strengthens its focus on C programming fundamentals, and adds new material on popular C-based object-oriented programming languages such as Objective-C.

Filled with carefully explained code, clear syntax examples, and well-crafted exercises, this is the broadest and deepest introductory C tutorial available. It’s ideal for anyone who’s serious about truly mastering C – including thousands of developers who want to leverage its speed and performance in modern mobile and gaming apps.

 

 

Friendly and accessible, it delivers step-by-step, hands-on experience that starts with simple tasks and gradually builds to professional-quality techniques. Each lesson is designed to be completed in hour or less, introducing and clearly explaining essential concepts, providing practical examples, and encouraging you to build simple programs on your own. Coverage includes:

  • Understanding C program components and structure
  • Mastering essential C syntax and program control
  • Using core language features, including numeric arrays, pointers, characters, strings, structures, and variable scope
  • Interacting with the screen, printer, and keyboard
  • Using functions and exploring the C Function Library
  • Working with memory and the compiler

Contents at a Glance

PART I: FUNDAMENTALS OF C
1 Getting Started with C
2 The Components of a C Program
3 Storing Information: Variables and Constants
4 The Pieces of a C Program: Statements, Expressions, and Operators
5 Packaging Code in Functions
6 Basic Program Control
7 Fundamentals of Reading and Writing Information

PART II: PUTTING C TO WORK
8 Using Numeric Arrays
9 Understanding Pointers
10 Working with Characters and Strings
11 Implementing Structures, Unions, and TypeDefs
12 Understanding Variable Scope
13 Advanced Program Control
14 Working with the Screen, Printer, and Keyboard

PART III: ADVANCED C
15 Pointers to Pointers and Arrays of Pointers
16 Pointers to Functions and Linked Lists
17 Using Disk Files
18 Manipulating Strings
19 Getting More from Functions
20 Exploring the C Function Library
21 Working with Memory
22 Advanced Compiler Use

PART IV: APPENDIXES
A ASCII Chart
B C/C++ Reserved Words
C Common C Functions
D Answers

 

商品描述(中文翻譯)

Sams Teach Yourself C Programming in One Hour a Day, Seventh Edition》是全球暢銷書《Sams Teach Yourself C in 21 Days》的最新版本。這一版已全面修訂以符合新的 C11 標準和庫,現在強調使用免費的開源 C 編譯器進行平台無關的 C 程式設計。本書加強了對 C 程式設計基礎的重視,並新增了有關流行的基於 C 的物件導向程式設計語言(如 Objective-C)的內容。

本書充滿了經過仔細解釋的程式碼、清晰的語法範例和精心設計的練習,是目前最廣泛且最深入的 C 語言入門教程。對於任何想要真正掌握 C 語言的人來說,這本書都是理想之選,包括數以千計希望在現代移動和遊戲應用中利用其速度和性能的開發者。

本書友好且易於理解,提供逐步的實作經驗,從簡單的任務開始,逐漸建立到專業級的技術。每一課都設計為在一小時內完成,介紹並清楚解釋基本概念,提供實用範例,並鼓勵讀者自行編寫簡單程式。內容涵蓋:

- 理解 C 程式的組成部分和結構
- 精通基本的 C 語法和程式控制
- 使用核心語言特性,包括數值陣列、指標、字元、字串、結構和變數範圍
- 與螢幕、印表機和鍵盤互動
- 使用函數並探索 C 函數庫
- 與記憶體和編譯器互動

內容概覽



第一部分:C 語言基礎

1 開始使用 C

2 C 程式的組成部分

3 儲存資訊:變數和常數

4 C 程式的組成部分:語句、表達式和運算子

5 將程式碼封裝在函數中

6 基本程式控制

7 讀取和寫入資訊的基礎



第二部分:將 C 應用於實務

8 使用數值陣列

9 理解指標

10 處理字元和字串

11 實作結構、聯合和型別定義

12 理解變數範圍

13 進階程式控制

14 與螢幕、印表機和鍵盤互動



第三部分:進階 C 語言

15 指標的指標和指標陣列

16 指標函數和鏈結串列

17 使用磁碟檔案

18 操作字串

19 從函數中獲得更多

20 探索 C 函數庫

21 與記憶體互動

22 進階編譯器使用



第四部分:附錄

A ASCII 圖表

B C/C++ 保留字

C 常見 C 函數

D 答案