C Primer Plus

Stephen Prata

出版时间

2013-12-05

ISBN

9780321928429

评分

★★★★★
书籍介绍

C Primer Plus is a carefully tested, well-crafted, and complete tutorial on a subject core to programmers and developers. This computer science classic teaches principles of programming, including structured code and top-down design.

Author and educator Stephen Prata has created an introduction to C that is instructive, clear, and insightful. Fundamental programming concepts are explained along with details of the C language. Many short, practical examples illustrate just one or two concepts at a time, encouraging readers to master new topics by immediately putting them to use.

Review questions and programming exercises at the end of each chapter bring out the most critical pieces of information and help readers understand and digest the most difficult concepts. A friendly and easy-to-use self-study guide, this book is appropriate for serious students of programming, as well as developers proficient in other languages with a desire to better understand the fundamentals of this core language.

The sixth edition of this book has been updated and expanded to cover the latest developments in C as well as to take a detailed look at the new C11 standard. In C Primer Plus you’ll find depth, breadth, and a variety of teaching techniques and tools to enhance your learning:

Complete, integrated discussion of both C language fundamentals and additional features

Clear guidance about when and why to use different parts of the language

Hands-on learning with concise and simple examples that develop your understanding of a concept or two at a time

Hundreds of practical sample programs

Review questions and programming exercises at the end of each chapter to test your understanding

Coverage of generic C to give you the greatest flexibility

Stephen Prata , now retired, taught astronomy, physics, and programming at the College of Marin in Kentfield, California. He received his B.S. from the California Institute of Technology and his Ph.D. from the University of California, Berkeley. His association with computers began with the computer modeling of star clusters. Stephen as authored or coauthored over a dozen books...

(展开全部)

AI导读
核心看点
  • C语言经典入门教程,讲解细致且结构清晰。
  • 涵盖从基础语法到指针、结构体等核心概念。
  • 每章配有习题与练习,帮助读者巩固所学知识。
适合谁读
  • 适合编程零基础或初学者系统学习C语言。
  • 适合需要夯实C语言基础的非科班程序员。
  • 适合对C语言标准及底层原理感兴趣的读者。
读前提醒
  • 内容详尽篇幅较长,建议配合动手敲代码。
  • 务必完成课后练习,否则容易遗忘核心概念。
  • 注意区分C与C++差异,避免概念混淆。
读者共识
  • 公认的优秀入门书,比国内教材更严谨透彻。
  • 部分读者认为内容过于啰嗦,适合跳读。
  • 英文版体验更佳,中文版翻译偶有瑕疵。

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "(GNU stands for "GNU's Not Unix")"
  • "Dennis Ritch 和 Ken Thompson在开发UNIX操作系统时设计了C语言。"
  • "高效性: C程序相对更紧凑,而且运行速度很快。in fact, C语言具有通常是汇编语言才具有的微调控制能力,可以根据具体情况微调程序以获得最大运行速度或最有效地使用内存。"
  • "一个C变量具有下列链接之一:外部链接(external linkage),内部链接(internal linkage),或空链接(no linkage)。 具有代码块作用域或者函数原型作用域的变量有空链接,意味着它们是由其定义说在的代码块或者函数原型所私有的。具有文件作用域的变量可能有内部或者外部链接。一个具有外部链接的变量可以在一个多文件程序的任何地方使用。一个具有内部链接的变量可以在一个文件的任何地方使用。"
  • "名字的选择 应尽量使用有意义的变量。如果名字不能表达清楚,可以用注释解释变量所表达的意思。通过这种方式使程序更易读是良好编程的基本技巧之一。"
  • "使用printf()语句时,切记每个要显示的值都必须对应自己的格式或说明符, 并且显示值的类型要同说明符相匹配。"
  • "因为 printf() 函数使用 % 符号来标识转换说明,所以打印%符号本身就成了一个小问题。如果你单独用一个%符号,那么编译器就会认为你丢掉了一个转换说明符号。解决办法很简单,就是使用两个%符号。如下面的代码:"
  • "C99 以前的 C 要求在一个代码块的开始处声明变量 当然,像 C99 现在所允许的那样把变量声明分散放置也有好处,那就是在准备为变量赋值之前声明变量"
作者简介
Stephen Prata , now retired, taught astronomy, physics, and programming at the College of Marin in Kentfield, California. He received his B.S. from the California Institute of Technology and his Ph.D. from the University of California, Berkeley. His association with computers began with the computer modeling of star clusters. Stephen as authored or coauthored over a dozen books, including C++ Primer Plus and Unix Primer Plus.
目录
Preface xxvii
1 Getting Ready 1
Whence C? 1
Why C? 2
Design Features 2

显示全部
用户评论
好书,读完豁然开朗
优秀的C语言入门书籍,对零基础读者非常友好,这点比K&R C强很多。读书是一件很私人的事情,如人饮水冷暖自知。如果自己水平一般却要强上高难度教材,吃苦头的是自己。
(可能我太学究了,初学者不用这么学究……但是,学究也没什么) 从头到尾一字不落地读完,包括习题、答案…… 网上对这本书的评价太高,以至于我读了之后感觉不适。写这本书的家伙并未好好研究C和C++,导致写了C++ Primer Plus后把C++的一些内容也混进C里来。对C语言而言,声明不是语句,但是C++认为声明是语句。数据结构和结构也傻傻分不清楚;前后术语混乱;术语混用。还有,const并不是常量,只是只读变量;赋值和函数调用应该是表达式语句!……太多,这家伙应该不研究C标准的。标准里没有的东西就自创。真给力! 我看的是原版。这样的作者给译者带来多大的麻烦只有译者知道,除了翻译不畅还要给这家伙修改各种错误。希望读者见到的译版能好一些。
太详细了,可以当做入门教材。全英文版的更好理解,英语水平可以的话 就不要去读中文版了。
very good
嗯读了一半多,也忘了很多。内容很多,而且讲得特别细致。对于初学者的话,不知道是好是坏。我反正过了几个月又忘得差不多了。打开了我吃灰的vs,面对在校内练习时敲的代码一脸茫然。哎,当时每天和她一起下午去书店,就只记得到代码以外的事情了。
住院两天翻完。如果这就是c的全部,那它确实比cpp简单好多,但任然能用指针和结构体创造世界。如嵌入式需要考虑效率的场合,可以看看字符串和指针的区别
9.8
收藏