string a = "asdf"; cout<<&a[0]; cout<<a[0];
为什么这两个输出不同?为什么&a[0]不是地址而是整个字符串?
&a[0]
c++ string
c++ ×1
string ×1