老甲克C++随笔(oldjacky||oldjackyone) |
|
||
.........体验真实C++......... |
2004年9月23日
摘要:
指针的引用与正常指针 释放内存的另一例比较 一、先看一段代码: #include using namespace std; void freePtr1(int* p1) { delete p1; p1 = NULL; } void freePtr2(int*& p2) { delete p2; p2 = NULL; } void main() { i... 阅读全文
|
Copyright © 2024 oldjacky
Powered by .NET 9.0 on Kubernetes |