/*
* Copyright (c) 2011, 烟台大学计算机学院
* All rights reserved.
* 作 者:王静
* 完成日期:2012 年12 月15 日
* 版 本 号:v1.0
* 输入描述:
* 问题描述:
* 程序输出:
* 问题分析:
* 算法设计:略
*/
#include <iostream>
using namespace std;
int main()
{
char str2[50]="I am a happy boy\'s daddy.";
char str3[100]="\\\comment";
int i=0,j=0;
while(str2[i]!='\0')
{
i++;
}
while(str3[j]!='\0')
{
str2[i++]=str3[j++];
}
str2[i]='\0';
cout<<"整理后的字符串是"<<str2<<endl;
return 0;
}
运行结果: