Tru*_*eon 5 c++ methods class instantiation this
以下代码是否安全?(我已经知道它编译正确了.)
void Tile::clear()
{
*this = Tile();
}
int main()
{
Tile mytile;
mytile.clear();
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
893 次 |
| 最近记录: |