Just Enough C/C ++ Programming
暫譯: 剛好足夠的 C/C++ 程式設計

Guy W. Lecky-Thompson

  • 出版商: Course Technology
  • 出版日期: 2007-11-12
  • 定價: $950
  • 售價: 3.1$299
  • 語言: 英文
  • 頁數: 400
  • 裝訂: Paperback
  • ISBN: 1598634682
  • ISBN-13: 9781598634686
  • 相關分類: C 程式語言C++ 程式語言
  • 立即出貨(限量) (庫存=2)

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

相關主題

商品描述

Description

C/C++ programming is often thought of as inaccessible, but these languages form the basis for many other programming languages and paradigms, and as such are vital, necessary skills for any IT professional to learn. Just Enough C/C++ Programming provides an intelligent layperson's guide to programming. The book does not assume you are dimwitted, like so many other beginning programming texts do, but it doesn't assume you are an engineer either. It simply gives you enough C/C++ language knowledge to be able to complete practical, industry-related, programming projects without becoming sidetracked. In short, it teaches you everything you need to know to be a successful programmer, without overloading you on the details. The book begins by explaining the tools you'll need, providing a concise introduction to the world of programming, and explaining the basic structure of a C program. Algorithm design for common programming problems, use of compilers and pre-processors, and the standard ANSI C libraries are all covered in enough detail so that you can pick up and apply the knowledge immediately. Next, the book covers the most relevant differences between C and C++, including C++ Standard Libraries, templates, and STL. The companion web site includes usable sample code for download and key pointers on how the code can be adapted for real-world use. Perfect for any aspiring software developer, Just Enough C/C++ Programming offers both a comfortable read, and practical, applicable, ready-to-use knowledge. 



   

Table of Contents

1 Introduction
Conventions
Before You Begin : Getting the Right Tools
Editor
Compiler & Linker

2 Programming Recap
What is Programming?
Procedural Programming
Program Flow
Data Storage
Compiling & Linking
Executable File Format
External Files (Header Files)

3 C Program Structure
The Entry Point
Declaring Variables
Containing Code Blocks
Variable Scoping
Comments
Defining Functions
Simple Skeleton Application
Building the Application
If the Application Fails to Build
Recap

4 Data Types & Variables
Basic Types
Sizes & Ranges
Complex Data Types
Casting
Arrays
Enumerated Types
Data Types & Variables
Recap

5 Decision Making
The C if Statement
The else Keyword
Using else if
Nesting
The switch Statement
Recap

6 Console I/O
Formatted Output
Using printf
Using sprintf
Formatted Input
Using scanf
Using sscanf
Non-formatted I/O
Recap

7 Standard Libraries
Standard I/O : stdio.h
String Handling : string.h
Math Functions : math.h
Memory Handling : malloc.h
The Standard Library : stdlib.h
The Time Library : time.h

8 Loops
The for Loop
The while Loop
More do and while
Using break and continue
Nesting Loops
Scoping revisited
Recap

9 Command Line Processing
The argv and argc Variables
Processing the Command Line
Conditional Execution
Recap

10 User Defined Functions
Declaring Functions
Prototyping
Function Parameter Lists
Pass by Value
Pass by Reference
Recursion
Recap

11 File I/O
Formatted I/O Revisited
Using fprintf
Using fscanf
Using fprintf & fscanf together
Binary Input and Output
Using fread and fwrite
Recap

12 Complex Data Types
The struct Keyword
Accessing Data
File Processing with Complex Data Types
Recap

13 Pointers
Strings Revisited
Pointers and References
Dereferencing
Pointers and Memory
Example : A Linked List of Command Line Arguments
Recap

14 Pre-Processor Directives
The Pre-Processor Concept
The #include Directive
The #define Directive
Avoiding Multiple Includes
C Style Macros
Recap

*[ 15 From C to C++
Object Oriented Design
Object Oriented Programming
Prototyping Revisited
Classes
Inheritance
Polymorphism
Example : A Linked List of Command Line Arguments (revisited)
Recap

16 C++ in Practice
Defining Classes
Constructors
Destructors
Operators
Example : Linked List Self-Management
Overloading
Recap ]

17 Where Next?

18 Web References

商品描述(中文翻譯)

**描述**

C/C++ 程式設計常被認為難以接觸,但這些語言是許多其他程式語言和範式的基礎,因此對任何 IT 專業人員來說,學習這些語言是至關重要的。《Just Enough C/C++ Programming》提供了一本智能的外行人程式設計指南。這本書不會假設你是愚蠢的,就像許多其他初學者程式設計書籍那樣,但也不會假設你是一名工程師。它只是給你足夠的 C/C++ 語言知識,以便能夠完成實際的、與行業相關的程式設計專案,而不會讓你偏離主題。簡而言之,它教你成為成功程式設計師所需知道的一切,而不會讓你在細節上過載。這本書首先解釋了你需要的工具,提供了對程式設計世界的簡明介紹,並解釋了 C 程式的基本結構。常見程式設計問題的演算法設計、編譯器和預處理器的使用,以及標準 ANSI C 函式庫都涵蓋得足夠詳細,以便你能立即掌握並應用這些知識。接下來,這本書涵蓋了 C 和 C++ 之間最相關的差異,包括 C++ 標準函式庫、模板和 STL。附屬網站包括可供下載的可用範例程式碼,以及如何將程式碼調整為實際使用的關鍵提示。對於任何有志於成為軟體開發者的人來說,《Just Enough C/C++ Programming》提供了舒適的閱讀體驗,以及實用、可應用、隨時可用的知識。

**目錄**

1 介紹
約定
開始之前:獲得正確的工具
編輯器
編譯器與連結器

2 程式設計回顧
什麼是程式設計?
程序式程式設計
程式流程
數據儲存
編譯與連結
可執行檔格式
外部檔案(標頭檔)

3 C 程式結構
進入點
宣告變數
包含程式碼區塊
變數範圍
註解
定義函式
簡單的骨架應用程式
建立應用程式
如果應用程式無法建立
回顧

4 數據類型與變數
基本類型
大小與範圍
複雜數據類型
類型轉換
陣列
列舉類型
數據類型與變數
回顧

5 決策
C 的 if 語句
else 關鍵字
使用 else if
嵌套
switch 語句
回顧

6 控制台 I/O
格式化輸出
使用 printf
使用 sprintf
格式化輸入
使用 scanf
使用 sscanf
非格式化 I/O
回顧

7 標準函式庫
標準 I/O:stdio.h
字串處理:string.h
數學函式:math.h
記憶體處理:malloc.h
標準函式庫:stdlib.h
時間函式庫:time.h

8 迴圈
for 迴圈
while 迴圈
更多 do 和 while
使用 break 和 continue
嵌套迴圈
重新檢視範圍
回顧

9 命令行處理
argv 和 argc 變數
處理命令行
條件執行
回顧

10 使用者定義函式
宣告函式
原型設計
函式參數列表
值傳遞
參考傳遞
遞迴
回顧

11 檔案 I/O
重新檢視格式化 I/O
使用 fprintf
使用 fscanf
同時使用 fprintf 和 fscanf
二進位輸入和輸出
使用 fread 和 fwrite
回顧

12 複雜數據類型
struct 關鍵字
存取數據
使用複雜數據類型的檔案處理
回顧

13 指標
重新檢視字串
指標與參考
解引用
指標與記憶體
範例:命令行參數的鏈結串列
回顧

14 預處理器指令
預處理器概念
#include 指令
#define 指令
避免多重包含
C 風格宏
回顧

* 15 從 C 到 C++
物件導向設計
物件導向程式設計
重新檢視原型設計
類別
繼承
多型
範例:命令行參數的鏈結串列(重新檢視)
回顧

16 C++ 實踐
定義類別
建構函式
解構函式
運算子
範例:鏈結串列自我管理
重載
回顧

17 接下來的步驟?

18 網頁參考