{{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++覆辙录

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

C++覆辙录

{{__(":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
Editer Recommend

市面上难得一见的C++编程病理学分析巨著
C++元老、Cfront作者十五年一线工程经验精华
马上能用、常读常新的专家级程序员晋级手册
本书讲解了C++语言中具有破坏性的99个常见编程错误,是专业开发人员避免和纠正这些编程错误的指导。读者通过本书还可以了解更为微妙的C++特性和编程技术。
本书讨论了几乎所有C++代码中都会出现的基本错误,以及在语法、预处理、转换、初始化、内存和资源管理、多态性、类设计和分层设计中出现的复杂错误。本书详细解释了每一个错误以及影响,并详细演示了相应的解决方案。
本书为读者提供了大量的风格和设计模式,可以用来生成常见问题的自定义解决方案。读者将学到在高级编程和设计中被误用的常见C++特性。
读者将在本书中学到:
如何逃脱C++相关的常见和复杂陷阱;
如何生成更为可重用、可维护性的代码;
高级C++编程技术;
C++语言的微妙差异。
本书带领读者经历了C++编程中的危险之处,并为开发人员提供了晋升为编程专家所需要的实用建议。
Content Description

《C++覆辙录》是C++大师Stephen C. Dewhurst根据多年教授C++课程中所遇到的常见错误的心得笔记编写而成。本书所有章节都从一个众所周知的、在日常编码或设计实践经常遭遇的问题入手,先指出其不足,再对其背后思想中存在的合理与不合理之处深入剖析,取其精华,去其糟粕,给出一个简洁、通用的方案,给出如何规避或纠正它们的建议,从而有助于C++软件工程师避免重蹈前辈的覆辙。
《C++覆辙录》适合具有一定C++编程经验的读者阅读。
Author Description

Stephen C. Dewhurst是贝尔实验室里使用c++语言的人之一。他将c++应用于编译器设计、电子商务、嵌入式通信等领域已有18年以上的经验。他是“programming in c++”一书的合作者,是“c/c++users journal”杂志的编辑,是“c++ report”的专栏作家。他是两个c++编译器的作者,发表过大量有关编译器设计和c++语言编程技巧的论文。
Catalogue

第1章 基础问题 1
常见错误1:过分积极的注释 1
常见错误2:幻数 4
常见错误3:全局变量 6
常见错误4:未能区分函数重载和形参默认值 8
常见错误5:对引用的认识误区 10
常见错误6:对常量(性)的认识误区 14
常见错误7:无视基础语言的精妙之处 15
常见错误8:未能区分可访问性和可见性 20
常见错误9:使用糟糕的语言 25
常见错误10:无视(久经考验的)习惯用法 28
常见错误11:聪明反被聪明误 32
常见错误12:嘴上无毛,办事不牢 34
第2章 语法问题 37
常见错误13:数组定义和值初始化的语法形式混淆 37
常见错误14:捉摸不定的评估求值次序 38
常见错误15:(运算符)优先级问题 44
常见错误16:for语句引发的理解障碍 48
常见错误17:取大优先解析原则带来的问题 52
常见错误18:声明饰词次序的小聪明 53
常见错误19:“函数还是对象”的多义性 55
常见错误20:效果漂移的型别量化饰词 56
常见错误21:自反初始化 57
常见错误22:静态连接型别和外部连接型别 59
常见错误23:运算符函数名字查找的反常行为 60
常见错误24:晦涩难懂的operator -> 63
第3章 预处理器问题 65
常见错误25:使用#define定义的字面量 65
常见错误26:使用#define定义的伪函数(函数宏) 68
常见错误27:#if的滥用 70
常见错误28:断言(assert宏)的副作用 76
第4章 型别转换问题 79
常见错误29:以void *为型别转换的中介型别 79
常见错误30:截切问题 83
常见错误31:对目标型别为指涉物为常量的指针型别的型别转换的
认识误区 86
常见错误32:对以指涉物为指涉到常量的指针型别的型别为目标型别的
型别转换的认识误区 87
常见错误33:对以指涉物为指涉到基类型别的指针型别的型别为目标型
别的型别转换的认识误区 92
常见错误34:指涉到多维数组的指针带来的问题 93
常见错误35:未经校验的向下转型 95
常见错误36:型别转换运算符的误用 96
常见错误37:始料未及的构造函数型别转换 101
常见错误38:在多继承条件下进行强制型别转换 104
常见错误39:对非完整型别做强制型别转换 106
常见错误40:旧式强制型别转换 108
常见错误41:静态强制型别转换 109
常见错误42:形参引发临时对象生成的初始化 112
常见错误43:临时对象的生存时域 116
常见错误44:引用和临时对象 119
常见错误45:动态强制型别转换运算符dynamic_cast带来的多义性解析
失败 122
常见错误46:对逆变性的误解 127
第5章 初始化问题 131
常见错误47:赋值与初始化混淆 131
常见错误48:位于非适当辖域的变量 135
常见错误49:未能意识到C++语言中复制操作的固守行为 138
常见错误50:按位复制的class对象 143
常见错误51:未能区分构造函数中的初始化和赋值 145
常见错误52:未能在成员初始化列表中保持次序一致性 147
常见错误53:对于虚基类(子对象)进行默认初始化 149
常见错误54:复制构造函数对基类子对象初始化的未预期行为 155
常见错误55:运行期静态初始化次序 158
常见错误56:直接vs. 复制初始化 161
常见错误57:对实参的直接初始化 164
常见错误58:无视返回值优化 166
常见错误59:在构造函数中初始化静态数据成员 170
第6章 内存和资源管理问题 175
常见错误60:未能区分纯量与数组的内存分配机制 175
常见错误61:内存分配失败校验 179
常见错误62:用自定义版本替换全局的内存管理运算符所调用的函数 181
常见错误63:成员版本的operator new和operator delete的辖域和
调用机制混淆 185
常见错误64:抛出字符串字面常量作为异常对象 186
常见错误65:未能正确理解和利用异常处理机制 189
常见错误66:滥用局部量地址 193
常见错误67:未能采用RAII习惯用法 198
常见错误68:对auto_ptr的误用 204
第7章 多态问题 207
常见错误69:型别特征码 207
常见错误70:将基类析构函数声明为非虚函数 213
常见错误71:对非虚成员函数的遮掩 218
常见错误72:以过分灵活的方式滥用模板方法设计模式 222
常见错误73:重载虚函数 223
常见错误74:为实参指定默认初始化物的虚函数 225
常见错误75:在构造函数和析构函数中调用虚函数 227
常见错误76:虚赋值 230
常见错误77:未能区分函数的重载、改写和遮掩 233
常见错误78:未能深入理解虚函数和改写的实现机制 239
常见错误79:支配原则议题 247
第8章 型别设计问题 251
常见错误80:取/设状态接口 251
常见错误81:常量和引用数据成员 255
常见错误82:未能理解常量成员函数 258
常见错误83:未能区分强聚合和弱聚合 262
常见错误84:非适当的运算符重载 268
常见错误85:运算符优先级和重载 271
常见错误86:友元vs.成员运算符 272
常见错误87:自增/自减运算符的问题 273
常见错误88:对模板化的复制操作的认识误区 277
第9章 继承谱系设计问题 281
常见错误89:持有class对象的数组 281
常见错误90:非适当的容器型别之可替换性 283
常见错误91:未能理解protected访问层级 287
常见错误92:为代码复用而以public方式继承 291
常见错误93:以public方式继承具象类 295
常见错误94:未能运用继承谱系的退化形式 296
常见错误95:继承的滥用 297
常见错误96:依型别分派的控制结构 301
常见错误97:单根谱系 304
常见错误98:向class对象打探隐私 308
常见错误99:权能查询问题 311
中英文对照表 317
引用书目 327

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