让你的C 代码变的更加健壮
2016-10-08 21:17:00 2 举报
AI智能生成
使C++程序变得更加健壮的小贴士
作者其他创作
大纲/内容
Using delete [] Operator for Arrays
Using Asserts Carefully
Checking Return Code of a Function
Using Smart Pointers
Smart Pointers – What, Why, Which??
Implementing a Simple Smart Pointer in C++
Using == Operator Carefully
Initializing Local Variables (局部变量初始化)
Validating Function Input
Initializing Function Output
Cleaning Up Pointers to Deleted Objects
Allocating Memory Carefully,扩展阅读:Secure Coding Best Practices for Memory Allocation in C and C++
0 条评论
下一页