题解 | #字符串连接#
字符串连接
https://www.nowcoder.com/practice/40d83e5509b04d20825ae68fe35e9ca8
#include <iostream> using namespace std; int main() { char a[100], b[100]; while (cin >> a >> b) { int i=0,j=0; while(a[i]!='\0')cout<<a[i++]; while(b[j]!='\0')cout<<b[j++]; cout<<endl; } }