{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

C++游戏编程入门(第4版)

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

C++游戏编程入门(第4版)

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Content Description

本书从游戏编程的角度介绍C++语言,既独具匠心又妙趣横生。
全书共10章,每章介绍C++语言的一个或数个重要的知识领域,同时通过一个游戏示例项目的开发进行实践和讲解。每章的结尾,会在一个游戏项目中将一些最重要的概念组合起来。最后一章的游戏将综合运用本书介绍的概念与技巧,创建一个相对复杂的游戏,涵盖了本书介绍过的所有主要概念。随着学习的深入,读者将学会如何组织编程项目,如何将问题分解为可管理的子问题块,以及如何精炼代码。
本书适合任何想编写游戏的读者,主要针对初学者,并假设读者之前没有任何编程经验。通过阅读本书,并在实验中实践,读者将为掌握C++这门语言并为游戏编程打下坚实的基础。
Author Description

Michael Dawson是一位程序员、游戏设计师和游戏开发者。他获得了南加州大学的计算机科学学士学位,并且目前教授大学生学习游戏编程。Mike的著作包括Beginning C++ Through Game Programming, Python Programming for the Absolute Beginner, C++ Projects: Programming withText-Based Games和 Guide to Programming with Python。请访问他的网站www.programgames.com,了解他的图书的更多信息,并获得相关的支持。
Catalogue



第1章 类型、变量与标准I/O:
Lost Fortune 1
11 C++简介 1
111 使用C++编写游戏 1
112 生成可执行文件 2
113 错误处理 3
114 理解ISO标准 4
12 编写第一个C++程序 4
121 Game Over程序简介 4
122 注释 5
123 使用空白字符 6
124 包含其他文件 6
125 定义main()函数 7
126 通过标准输出显示
文本 7
127 语句的终止 8
128 从main()函数返回值 8
13 使用std名称空间 9
131 Game Over 20程序
简介 9
132 使用using指令 10
133 Game Over 30
程序简介 10
134 使用using声明 11
135 使用using的时机 11
14 使用算术运算符 12
141 Expensive Calculator
程序简介 12
142 加法、减法与乘法 13
143 理解整型与浮点型
除法 13
144 使用模除运算符 14
145 运算符的优先级 14
15 声明和初始化变量 14
151 Game Stats程序简介 14
152 基本类型 16
153 类型修饰符 16
154 变量声明 17
155 变量命名 18
156 变量的赋值 19
157 变量初始化 20
158 显示变量值 20
159 获取用户输入 20
1510 为类型定义新名称 21
1511 类型的选择 21
16 使用变量进行算术运算 21
161 Game Stats 20
程序简介 22
162 修改变量值 23
163 使用组合赋值运算符 23
164 递增运算符与递减
运算符 24
165 整数的溢出处理 25
17 使用常量 26
171 Game Stats 30
程序简介 26
172 使用常量 27
173 使用枚举类型 27
18 Lost Fortune简介 28
181 创建程序 29
182 从玩家获取信息 30
183 讲故事 30
19 本章小结 31
110 问与答 32
111 问题讨论 33
112 习题 34
第2章 真值、分支与游戏循环:
Guess My Number 35
21 理解真值 35
22 使用if语句 36
221 Score Rater程序简介 36
222 验证真与假 38
223 值的真与假 39
224 使用关系运算符 39
225 if语句的嵌套 40
23 使用else子句 40
231 Score Rater 20
程序简介 41
232 两种创建分支的方法 42
24 使用带else子句的if
语句序列 43
241 Score Rater 30程序
简介 43
242 创建带else子句的if
语句序列 44
25 使用switch语句 45
251 Menu Chooser程序
简介 46
252 创建多路分支 48
26 使用while循环 48
261 Play Again游戏简介 48
262 使用while循环 49
27 使用do循环 50
271 Play Again 20程序
简介 50
272 使用do循环 51
28 使用break和continue语句 52
281 Finicky Counter程序
简介 52
282 创建while(true)循环 53
283使用break语句退出
循环 53
284 使用continue语句跳转
到循环开始 54
285 使用break和continue
的时机 54
29 使用逻辑运算符 54
291 Designers Network程序
简介 55
292 使用逻辑与运算符 57
293 使用逻辑或运算符 58
294 使用逻辑非运算符 58
295 运算符的优先级 59
210 随机数的生成 60
2101 Die Roller程序简介 60
2102 调用rand()函数 61
2103 为随机数生成器确定
种子 61
2104 在一定范围内计算 62
211 理解游戏主循环 63
212 Guess My Number游戏
简介 64
2121 采用游戏主循环 64
2122 初始化游戏 65
2123 创建游戏主循环 66
2124 游戏结束 67
213 本章小结 67
214 问与答 68
215 问题讨论 69
216 习题 69
第3章 for循环、字符串与数组:
Word Jumble 71
31 使用for循环 71
311 Counter程序简介 72
312 使用for循环计数 73
313 在for循环中使用空
语句 74
314 for循环的嵌套 74
32 了解对象 75
33 使用string对象 77
331 String Tester程序简介 77
332 创建string对象 79
333 string对象的连接 79
334 使用size()成员函数 79
335 索引string对象 80
336 循环访问string对象 81
337 使用find()成员函数 81
338 使用erase()成员函数 82
339 使用empty()成员函数 83
34 使用数组 83
341 Hero's Inventory程序
简介 83
342 创建数组 85
343 数组的索引 86
344 使用数组元素的成员
函数 87
345 数组边界 87
35 理解C风格字符串 88
36 使用多维数组 89
361 Tic-Tac-Toe Board程序
简介 90
362 创建多维数组 91
363 多维数组的索引 92
37 Word Jumble程序简介 92
371 创建程序 93
372 选择单词 93
373 单词乱序 94
374 欢迎界面 95
375 进入游戏主循环 95
376 游戏结束 96
38 本章小结 96
39 问与答 97
310 问题讨论 99
311 习题 99
第4章 标准模板库:Hangman 100
41 标准模板库简介 100
42 使用vector 101
421 Hero's Inventory 20程序
简介 101
422 使用向量的准备工作 103
423 向量的声明 103
424 使用push_back()成员
函数 104
425 使用size()成员函数 104
426 向量的索引 105
427 调用元素的成员函数 105
428 使用pop_back()成员
函数 106
429 使用clear()成员函数 106
4210 使用empty()成员
函数 106
43 使用迭代器 107
431 Hero's Inventory 30程序
简介 107
432 迭代器的声明 109
433 循环访问向量 110
434 修改向量元素的值 111
435 访问向量元素的成员
函数

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book