64,654
社区成员
发帖
与我相关
我的任务
分享
#include<string>
using std::string;
int main()
{
string s1;
auto i=s1.begin();
i->empty();//错误
(*i).empty();//错误
}
#include<string>
#include <stdio.h>
using std::string;
int main()
{
string s1 = "hello";
char h= *s1.begin();
printf("h = %c\n",h);
}
~