题解 1032: [编程入门]自定义函数之字符串连接

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

自定义函数之字符串连接

摘要:解题思路:用字符串连接函数即可注意事项:参考代码:#include<stdio.h>int main(){    char a[100],b[100];    gets(a);    gets(b);……

这样写怎么样

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ char a[100]; int i,j,q; char r,s; for(i=0;;i++) { sc……

1032: [编程入门]自定义函数之字符串连接

摘要:解题思路:用字符串函数<string.h>注意事项:需注意两个函数的位置,若主函数在前则须在主函数内声明连接的函数参考代码:#include <stdio.h>#include <string.h>v……

字符串连接

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char a[100];    char b[100];    int……

自定义函数之字符串连接

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void str_cat(char a[],char b[]){    strcat(a,b);  ……

字符串连接

摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<string.h>int main() {    char arr1[100];    gets(arr1);    i……

三行代码解决字符串连接问题

摘要:解题思路:使用string,cin连续输入两个字符串使用cout连续输出即可注意事项:无参考代码:#include<iostream>using namespace std;void dfs(){  ……