如题所述
#include <iostream>
using namespace std;
int main(){
string m;
if(m != "")
cout<<1<<endl;
else
cout<<0<<endl;
return 0;
}
using namespace std;
int main(){
string m;
if(m != "")
cout<<1<<endl;
else
cout<<0<<endl;
return 0;
}
大概像这样?你问的应该是string吧,别告我是c串,其实也差不多
温馨提示:答案为网友推荐,仅供参考