getline不忽略空格字符串
#include <iostream>
#include <string>
using namespace std;
int main(void)
{
string s;
getline(cin, s);
cout << s.size() << endl;
}
#include <iostream>
#include <string>
using namespace std;
int main(void)
{
string s;
getline(cin, s);
cout << s.size() << endl;
}