string

作者: 混世太保 | 来源:发表于2019-03-08 22:38 被阅读0次

2019.3.8

问题:

1. 在c++中初始化时不能给string赋值为空或者nullptr。
2. 写出string的fill constructor的构造函数?

答案:

  1. fill constructor如下:
    • string(size_t n, char c);

相关文章

网友评论

      本文标题:string

      本文链接:https://www.haomeiwen.com/subject/zefjpqtx.html