摘要: #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& 阅读全文
posted @ 2012-05-03 22:37 lance2008 阅读(710) 评论(0) 推荐(0) 编辑