从键盘输入两个字符串a和b,要求不用库函数strcat,把字符串b前面的五个字符连接到a 后面

[复制链接]
查看11 | 回复1 | 2019-6-25 11:04:07 | 显示全部楼层 |阅读模式
#include using namespace std;void main(){char a[80], b[20];int i, j;cout > a[80];cout > b[20];i = 0;while (a != '\0')i++;j = 0;while (b[j] != '\0 '&& j int main(void){
char a[128], b[128];
char *p = a;
int i;
printf("请输入字符串a:");
gets(a);
printf("请输入字符串b:");
gets(b); ...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行