像以下的输入格式:
dog ogday cat atcay pig igpay froot ootfray loops oopslay atcay ittenkay oopslay
需要空行以上的部分存在一个字符串里。空行以下的存在另一个字符串里,用while(cin)类似的输入方式应该怎样输入?