C++ empty String constructor

后端 未结 7 1892
误落风尘
误落风尘 2021-02-13 02:56

I am a C++ beginner, so sorry if the question is too basic.

I have tried to collect the string constrcturs and try all them out (to remember them).

strin         


        
7条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-13 03:11

    It prints 1 because pointers to functions are always converted to numeric as true.

提交回复
热议问题