摘要:
#include"stdafx.h"#include<iostream>usingnamespacestd;int_tmain(intargc,_TCHAR*argv[]){chars1[60]="kingbaby";char*s2="hello";inti=0;intj=0;while(s1[i]!='\0')i++;while((s1[i]=s2[j])!='\0'){j++;i++;}cout<<s1<<endl;return0;}方法二方法二#include& 阅读全文