自定义函数之字符串反转-(指针)格式错误不知道哪错了?? 摘要:题解如下: #include #include void reverse(char *a,char *b,int n) { char …… 题解列表 2019年06月17日 0 点赞 1 评论 332 浏览 评分:0.0
大一新生用C语言编写的 摘要:解题思路:不知道为啥用scanf,printf就不行注意事项:参考代码:#include<stdio.h>#include<string.h>void fanh(char a[]);//函数的声明in…… 题解列表 2024年11月14日 1 点赞 0 评论 271 浏览 评分:0.0
题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> int main(){ int i,n; char a[n]; gets(a); …… 题解列表 2023年03月20日 0 点赞 0 评论 103 浏览 评分:0.0
写一函数,使输入的一个字符串按反序存放,在主函数中输入并输出反序后的字符串(不包含空格) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a, b[100]; int i = 0, j; while ((a = getchar()) != …… 题解列表 2021年08月08日 0 点赞 0 评论 371 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int i,n; gets(a)…… 题解列表 2020年10月09日 0 点赞 0 评论 244 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:会用到的标准库函数,gets(),puts(),strlen(),前两个是在头文件stdio.h中,后一个是在string.h里,用法如下: 1、gets():与scanf("…… 题解列表 2022年08月09日 0 点赞 0 评论 116 浏览 评分:0.0
c++指针法(指针练习) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ char arr[100]; cin.getline(arr,100…… 题解列表 2023年12月14日 0 点赞 0 评论 153 浏览 评分:0.0
自定义函数之字符串反转 摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){char ch[100],*p; int i;fgets…… 题解列表 2022年06月16日 0 点赞 0 评论 131 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C++代码) 摘要:#include using namespace std; int main() { string s; cin>>s; int i; for(i=s.size()-1;i…… 题解列表 2020年01月30日 0 点赞 0 评论 452 浏览 评分:0.0
C语言-自定义函数之字符串反转--直接法 摘要:解题思路:字符串的反转就是直接输出这个字符串的逆序。注意事项:1、为什么是 gets(a);因为:gets函数类似于scanf函数,用于读取标准输入,gets函数可以读入空格,而scanf函数不可以。…… 题解列表 2022年10月27日 0 点赞 0 评论 162 浏览 评分:0.0