题目 1032: [编程入门]自定义函数之字符串连接
摘要:def fun(str_1, str_2): new_ste = str_1 + str_2 return new_stestr_1 = input()str_2 = input()rel……
自定义函数之字符串连接
摘要:解题思路:注意事项:参考代码:#include <stdio.h>void Mystrcat(char str1[],char str2[]){ int n,i,j; for(i=strlen(str……
[编程入门]自定义函数之字符串连接-题解(C语言代码)
摘要:解题思路:利用函数连接字符串注意事项:在a[i]最后加上一个'\0';参考代码:#include <stdio.h>#include <stdlib.h>#include <strin……
自定义函数之字符串连接
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int lianjie(char a[],char b[],char c[]){ int i ……
[编程入门]自定义函数之字符串连接-题解(C语言代码)
摘要:```c
#include
void fun(char a[],char b[],char c[])
{
int i,j=0;
for(i=0;a[i]!='\0';i++)
……
[编程入门]自定义函数之字符串连接-题解(C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h># define N 80char *MyStract(char *a,char *b);int main(){ char c[2*N……
[编程入门]自定义函数之字符串连接-简单的数组解法题解(C语言代码)
摘要:解题思路:先将两串字符串分别存放到两个数组中,再将字符串赋值给第三个数组注意事项:注意对第二个数组赋值到第三个数组的式子参考代码:#include<stdio.h>#include<string.h>……
[编程入门]自定义函数之字符串连接-题解(C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[40],b[20]; gets(a); gets(b);……
[编程入门]自定义函数之字符串连接-题解(C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100],b[100]; gets(a); gets(b); ……