指針辨析:懸垂指針、啞指針、野指針、智能指針

懸垂指針:   1:提出的緣由: 請看下面的代碼片斷:html   [cpp]  view plain copy print ?   int *p=NULL;      void main()   {       int i=10;p=&i;              cout<<"第一次:*p = "<<*p<<endl;       cout<<"第二次:*p = "<<*p<<endl;  
相關文章
相關標籤/搜索