C++中this指针的指向????
void mesh::n_alltriangle ()
{
for (int i = 0; i < numTriangles; i++)
{
_tlist[i].calcNormal (this);
}
}
mesh m;
m.n_alltriangle ();
我的问题是:mesh::n_alltriangle ()函数里面的this指针是指向m,还是指向_tlist[i] ???
tuomasiyyq
2017/07/21 09:28- c++
- this指针
- 点赞
- 收藏
- 回答