字符串输入 string s; //输入不带空格的字符串 cin>>s; //输入带空格的字符串 getline(cin,s); //c语言输入带空格的字符串 char str[100] scanf("[^\n]",str); get(str) 评论 0