您好,欢迎光临本网站![请登录][注册会员]  
文件名称: C++ Hackers Guide.pdf
  所属分类: C++
  开发工具:
  文件大小: 2mb
  下载次数: 0
  上传时间: 2010-12-10
  提 供 者: dolphi******
 详细说明: C++ Hackers Guide.pdf Table of Contents Real World Hacks................................................................................................9 Hack 1: Make Code Disappear..........................................................................10 Hack 2: Let Someone Else Write It...................................................................12 Hack 3: Use the const Keyword Frequently For Maximum Protection.............12 Hack 4: Turn large parameter lists into structures..........................................14 Hack 5: Defining Bits.........................................................................................16 Hack 6: Use Bit fields Carefully........................................................................18 Hack 7: Documenting bitmapped variables......................................................19 Hack 8: Creating a class which can not be copied............................................21 Hack 9: Creating Self-registering Classes.........................................................22 Hack 10: Decouple the Interface and the Implementation...............................25 Hack 11: Learning From The Linux Kernel List Functions...............................27 Hack 12: Eliminate Side Effects........................................................................29 Hack 13: Don't Put Assignment Statements Inside Any Other Statements......30 Hack 14: Use const Instead of #define When Possible.....................................31 Hack 15: If You Must Use #define Put Parenthesis Around The Value.............32 Hack 16: Use inline Functions Instead of Parameterized Macros Whenever Possible........................................................................................................33 Hack 17: If You Must Use Parameterized Macros Put Parenthesis Around The arguments....................................................................................................34 Hack 18: Don't Write Ambiguous Code.............................................................34 Hack 19: Don't Be Clever With the Precedence Rules......................................35 Hack 20: Include Your Own Header File...........................................................36 Hack 21: Synchronize Header and Code File Names.......................................37 Hack 22: Never Trust User Input......................................................................38 Hack 23: Don't use gets.....................................................................................40 Hack 24: Flush Debugging................................................................................41 Hack 25: Protect array accesses with assert....................................................42 Hack 26: Use a Template to Create Safe Arrays...............................................45 Hack 27: When Doing Nothing, Be Obvious About It........................................46 Hack 28: End Every Case with break or /* Fall Through */...............................47 Hack 29: A Simple assert Statements For Impossible Conditions....................47 Hack 30: Always Check for The Impossible Cases In switches.........................48 Hack 31: Create Opaque Types (Handles) Which can be Checked at Compile Time.............................................................................................................49 Hack 32: Using sizeof When Zeroing Out Arrays..............................................51 Hack 33: Use sizeof(var) Instead of sizeof(type) in memset Calls....................51 Hack 34: Zero Out Pointers to Avoid Reuse......................................................53 Hack 35: Use strncpy Instead of strcpy To Avoid Buffer Overflows.................54 Hack 36: Use strncat instead of strcat for safety..............................................55 ...... ...... ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: C++ Hackers Guide
 输入关键字,在本站1000多万海量源码库中尽情搜索: