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)
買這商品的人也買了...
-
$980$774 -
$880$695 -
$720$569 -
$1,200$948 -
$1,560$1,326 -
$550$468 -
$990$891 -
$490$417 -
$600$480 -
$720$612 -
$650$514 -
$480$379 -
$700$553 -
$680$537 -
$820$648 -
$890$703 -
$950$741 -
$490$387 -
$560$442 -
$520$411 -
$1,200$948 -
$480$408 -
$580$452 -
$1,130$961 -
$400$380
相關主題
商品描述
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