Heim  >  Fragen und Antworten  >  Hauptteil

c++ - 在构造函数初始值列表中使用 new 是什么意思?类似 :file(new vector<string>)

PHPzPHPz2714 Tage vor537

Antworte allen(2)Ich werde antworten

  • PHPz

    PHPz2017-04-17 13:53:35

    构造函数的初始化列表
    http://www.cnblogs.com/BlueTzar/articles/1223169.html

    Antwort
    0
  • 怪我咯

    怪我咯2017-04-17 13:53:35

    就是单纯的字面意思,new一个vector<string>来初始化file。

    Antwort
    0
  • StornierenAntwort