运行 ❯
建立您
自己的
网站
×
更改方向
更改主题,深色/浅色
前往 Spaces
#include <iostream> #include <cstring> using namespace std; int main() { char myStr[20] = "Hello"; strcat(myStr, " World!"); cout << myStr; return 0; }
Hello World!