65,211
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str1="大家好啊";
string str2="不是很好";
string temp;
int i=0;
while(i<8)
{
temp=str2.substr(i,2)+str1.substr(i,2);
cout<<temp<<endl;
i+=2;
}
return 0;
}