search

Home  >  Q&A  >  body text

c++ - 指针之间赋值

list_node *p = adjacency_listx->vlist[x].list;

我在接下来为p赋值,想让 adjacency_listx->vlist[x].list随着p改变而改变,请问大家语句应该怎么改写呢c++

伊谢尔伦伊谢尔伦2774 days ago297

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 13:40:56

    Looking at this, just use the quote directly, right?

    auto &p = adjacency_listx->vlist[x].list;

    reply
    0
  • Cancelreply