Giter VIP home page Giter VIP logo

cprimerplus's Introduction

CPrimerPlus

《C Primer Plus》中文第6版 配套源代码

中文书名:C Primer Plus (第6版) 中文版 英文书名:C Primer Plus Sixth Edition

ISBN: 978-7-115-39059-2

作者: [美] Stephen Prata

译者: 姜佑

出版社: 人民邮电出版社

源代码下载地址: https://box.lenovo.com/l/yJ4bt8 提取码:ed11 https://www.epubit.com/bookDetails?id=N24770

Chapter01 第1章 初识C语言 01. listing1.c ===> 演示编译用的源代码 02. listing2.c ===> 用于说明编译机制的源代码 03. inform.c ===> 演示源代码文件的文件名

Chapter02 第2章 C语言概述 01. first.c ===> 一个简单的 C 程序 02. fathm_ft.c ===> 把 2 音寻转换成英寸 03. two_func.c ===> 一个文件中包含两个函数 04. nogood.c ===> 有错误的程序 05. stillbad.c ===> 修复了语法错误的程序 06. good.c ===> 修复所有错误的程序

Chapter03 第3章 数据和C 01. platinum.c ===> 计算你的体重值多少金衡盎司 02. print1.c ===> 演示 printf() 的一些特性 03. bases.c ===> 以十进制、八进制、十六进制打印十进制数 04. toobig.c ===> 超出系统允许的最大 int 值 05. print2.c ===> 更多 printf() 的特性 06. charcode.c ===> 显示字符的代码编号 07. altnames.c ===> 可移植整数类型名 08. showf_pt.c ===> 以两种方式显示 float 类型的值 09. floaterr.c ===> 演示舍入错误 10. typesize.c ===> 打印类型大小 11. badcount.c ===> 参数错误的情况 12. escape.c ===> 使用转义序列

Chapter04 第4章 字符串和格式化输入输出 01. talkback.c ===> 演示与用户交互 02. praise1.c ===> 使用不同类型的字符串 03. praise2.c ===> strlen() 函数的使用 04. pizza.c ===> 在比萨饼程序中使用已定义的常量 05. defines.c ===> 使用 limit.h 和 float 头文件中定义的明示常量 06. printout.c ===> 使用转换说明 07. width.c ===> 字段宽度 08. floats.c ===> 一些浮点型修饰符的组合 09. flags.c ===> 演示一些格式标记 10. stringf.c ===> 字符串格式 11. intconv.c ===> 一些不匹配的整型转换 12. floatcnv.c ===> 不匹配的浮点类型转换 13. prntval.c ===> printf() 的返回值 14. longstrg.c ===> 打印较长的字符串 15. input.c ===> scanf() 函数何时使用& 16. varwid.c ===> 使用变宽输出字段 17. skiptwo.c ===> 跳过输入中的前两个整数

Chapter05 第5章 运算符、表达式和语句 01. shoes1.c ===> 把鞋码转换成英寸 02. shoes2.c ===> 计算多个不同鞋码对应的脚长 03. golf.c ===> 高尔夫锦标赛记分卡 04. squares.c ===> 计算 1 ~ 20 的平方 05. wheat.c ===> 指数增长 06. divide.c ===> 演示除法 07. ules.c ===> 优先级测试 08. sizeof.c ===> 使用 sizeof 运算符 09. min_sec.c ===> 把秒数转换成分和秒 10. add_one.c ===> 递增:前缀和后缀 11. post_pre.c ===> 前缀和后缀 12. bottles.c ===> 演示了计算机可以是位出色的填词家 13. addemup.c ===> 几种常见的语句 14. convert.c ===> 自动类型转换 15. pound.c ===> 定义一个带一个参数的函数 16. running.c ===> 一个对跑步者有用的程序

Chapter07 第6章 C控制语句:循环 01. summing.c ===> 根据用户键入的整数求和 02. when.c ===> 何时退出循环 03. while1.c ===> 糟糕的代码创建了一个无限循环 04. while2.c ===> 注意分号的位置 05. cmpflt.c ===> 浮点数比较 06. t_and_f.c ===> C 中的真和假的值 07. truth.c ===> 哪些值为真 08. trouble.c ===> 误用 = 会导致无限循环 09. boolean.c ===> 使用 _Bool 类型的变量 variable 10. sweetie1.c ===> 一个计数循环 11. sweetie2.c ===> 使用 for 循环的计数循环 12. for_cube.c ===> 使用 for 循环创建一个立方表 13. postage.c ===> 一类邮资 14. zeno.c ===> 求序列的和 15. do_while.c ===> 出口条件循环 16. entry.c ===> 出口条件循环 17. rows1.c ===> 使用嵌套循环 18. rows2.c ===> 依赖外部循环的嵌套循环 19. scores_in.c ===> 使用循环处理数组 20. power.c ===> 计算数的整数幂

Chapter07 第7章 C控制语句:分支和跳转 01. colddays.c ===> 找出 0℃ 以下的天数占总天数的百分比 02. cypher1.c ===> 更改输入,空格不变 03. cypher2.c ===> 替换输入的字母,非字母字符保持不变 04. electric.c ===> 计算电费 05. divisors.c ===> 使用嵌套 if 语句显示一个数的约数 06. chcount.c ===> 使用逻辑与运算符 07. wordcnt.c ===> 统计字符数、单词数、行数 08. paint.c ===> 使用条件运算符 09. skippart.c ===> 使用 continue 跳过部分循环 10. break.c ===> 使用 break 退出循环 11. animals.c ===> 使用 switch 语句 12. vowels.c ===> 使用多重标签 13.

cprimerplus's People

Contributors

xiaotuan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.