#include <bits/stdc++.h>
using namespace std;
string a;
vector<string> str;//不能用string str[N],因为这题没告诉N是多少
int main(){
cin>>a;//特判一下,判断第一次输入是"."则不进入while循环
while(a!="."){
//cin>>a;
str.push_back(a);//若cin放在这个语句前,又该怎么改呢?
cin>>a;
}
if(str.size()<2)cout<<"Momo... No one is for you ...";
else if(str.size()<14) cout<<str[1]<<" is the only one for you...";
else cout<<str[1]<<" and "<<str[13]<<" are inviting you to dinner...";
return 0;
}
若cin放在这个语句前,会有什么问题,又该怎么改呢?