为什么要按两次空格才能出现结果呀
#include<iostream>
#include<string>
using namespace std;
int main()
{
string name;
cout<< "Please input your name :";
getline(cin, name);
if(name.empty())
{
cout << "Input is null..."<<endl;
system("pause");
return 0;
}
if(name =="imooc")
{
cout<<"you are a administrator"<<endl;
}
cout<<"hello " + name<<endl;
cout<<"your name length is : "<<name.size()<<endl;
cout<<"your first letter is : "<<name[0]<<endl;
system("pause");
return 0;
}