---
title: "Coding words"
author: "AIP"
date: "2007-06-08T14:19:53Z"
tags: []
slug: "coding-words"
draft: false
lastmod: "2007-06-08T14:19:53Z"
id: 88357
url: "https://aip.iteye.com/blog/88357"
---

POSITION的值究竟是什么？它会随着元素在链表内的位置的变化而变化么？  
查看mfc源码发现，POSITION是一个结构体指针；既然是指针，那么它的值是不会随着元素在链表内位置的变化而变化的，而链表中元素的index则会变化。

delete 一个指针之后，要将该指针赋值为NULL。否则，如果该指针所指向的内容已经被其他程序所使用，再次delete这个指针，就会造成错误。  
赋值为NULL也表示该指针未被使用，如果使用它之前没有使它指向某处空间 ，编译器会报错。

[delete](http://isdox.com/index.php?tag=delete), [mfc](http://isdox.com/index.php?tag=mfc), [null](http://isdox.com/index.php?tag=null), [position](http://isdox.com/index.php?tag=position), [指针](http://isdox.com/index.php?tag=%E6%8C%87%E9%92%88)