字符串拼接

#include <iostream>

#include <Windows.h>

using namespace std;

int main()

{

  char MAC[215] = "www.baidu";

    char DPK[100] = "ping ";

    strcat(DPK,MAC);

    cout << DPK << endl;

    system(DPK);

system("pause");

return 0;

}

posted @ 2021-08-25 16:50  江南王小帅  阅读(20)  评论(0)    收藏  举报