Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 204 Bytes

exercise_12_31.md

File metadata and controls

9 lines (5 loc) · 204 Bytes

练习12.31:如果用vector代替set保存行号,会有什么差别?哪种方法更好?为什么?


  • set能保证升序

  • set保存唯一的行号,vector可能重复

使用set更好。