#3538. C++-字符串-对于字符串读入,getline可以接收空格,cin遇到空格则表示停止
C++-字符串-对于字符串读入,getline可以接收空格,cin遇到空格则表示停止
Background
Description
getline(cin,字符串变量名),可以接收空格 cin遇到空格则表示停止
Format
Input
Output
Samples
abcdefg abcdefg
abcdefg abcdefg
abcdefg abcdefg
abcdefg
123987 abc
abc123 987
123987 abc
abc123
Limitation
1s, 1024KiB for each test case.