How can I print the value of the previous and next elements of an element from an STL list?

后端 未结 0 1396
陌清茗
陌清茗 2021-01-25 11:58

I want to print the values of the elements beside any given element. For example : 1 2 3 4 5 If I want the elements that are beside 2, I want to out put 1 and 3

相关标签:
回答
  • 消灭零回复
提交回复
热议问题