自定义函数之字符串反转 摘要:解题思路:字符数组逆序。注意事项:1.使用字符数组时要记得写#include<string.h> 2.输出单个字符是用%c,输出字符串时用%s.参考代码:#include<…… 题解列表 2022年07月07日 0 点赞 0 评论 1312 浏览 评分:9.9
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:写一个函数,输入数组后,数组内元素循序逆转主函数输入数组-->经过函数转换-->主函数输出数组参考代码:#include<stdio.h> #include<string.h> void…… 题解列表 2022年06月30日 0 点赞 0 评论 538 浏览 评分:0.0
[编程入门]自定义函数之字符串反转(指针详解) 摘要:参考代码:#include<stdio.h> #include<string.h> void reverse(char* str) //(类型*) 是指针类型,str为指…… 题解列表 2022年06月27日 0 点赞 0 评论 553 浏览 评分:9.9
数组的简单应用 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,i,j; char a[1000]; get…… 题解列表 2022年06月20日 0 点赞 0 评论 542 浏览 评分:9.9
自定义函数之字符串反转 摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){char ch[100],*p; int i;fgets…… 题解列表 2022年06月16日 0 点赞 0 评论 497 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转(指针) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char *ptr,st[100]; int i,j; g…… 题解列表 2022年06月11日 0 点赞 0 评论 558 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#includeint main() { char ch[265],c; int i=0; while((c=getchar())!=EOF){ if(c…… 题解列表 2022年06月10日 0 点赞 0 评论 491 浏览 评分:0.0
挺容易理解的程序 摘要:解题思路:先去空格(32) 再逆序 注意事项:字符串s限制80字符以内 可以自行修改参考代码:#include <stdio.h> #include <string.h> void qu32(ch…… 题解列表 2022年05月11日 0 点赞 0 评论 641 浏览 评分:9.9
用数组与for循环解题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define N 100void oppo(char sz[],int m){ int j; for(j=m-1;j>=0;j--)…… 题解列表 2022年05月07日 0 点赞 0 评论 528 浏览 评分:0.0
[编程入门]自定义函数之字符串反转(函数版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int i;char T1(){ char a[100]; gets(a);int n=…… 题解列表 2022年05月06日 0 点赞 0 评论 611 浏览 评分:0.0