[编程入门]字符串连接
摘要:解题思路:将字符串输入后,使用puts()函数进行输出,在输出a后自动回车,得到结果不符;将字符串a单个输出后输出b注意事项:gets当遇到换行符\n或者EOF时停止参考代码:#include<std……
[编程入门]自定义函数之字符串连接
摘要:解题思路:直接相加即可注意事项:头文件#include#includeusing namespace std;void func(string n,string m){ cout<<n+m;}int……
1032题 : 自定义函数之字符串连接
摘要:# 自己写的代码
```c
#include
#include
int main()
{
char a[20];
char b[20];
gets(a);
gets(b)……
自定义函数之字符串连接(指针)
摘要:解题思路:
解释就都在代码中了
参考代码:
未用指针版,容易理解些:
```c
#include
void m(char *a,char *b)
{
int i=0,k……
自定义函数之字符串连接java
摘要: import java.util.Scanner;
public class Main {
public static void main(String[] args) {
S……
自定义函数之字符串连接
摘要:解题思路:用字符串连接函数即可注意事项:参考代码:#include<stdio.h>int main(){ char a[100],b[100]; gets(a); gets(b);……
我这对吗?我感觉有哪不对,但又说不上来,机器给我判对了
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void max(char a[],char b[]){ printf("%s",a); printf("%s",b); return;……
1032: [编程入门]自定义函数之字符串连接
摘要:解题思路:用字符串函数<string.h>注意事项:需注意两个函数的位置,若主函数在前则须在主函数内声明连接的函数参考代码:#include <stdio.h>#include <string.h>v……