自定义函数之字符串反转 摘要:解题思路:字符数组逆序。注意事项:1.使用字符数组时要记得写#include<string.h> 2.输出单个字符是用%c,输出字符串时用%s.参考代码:#include<…… 题解列表 2022年07月07日 0 点赞 0 评论 1075 浏览 评分:9.9
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:写一个函数,输入数组后,数组内元素循序逆转主函数输入数组-->经过函数转换-->主函数输出数组参考代码:#include<stdio.h> #include<string.h> void…… 题解列表 2022年06月30日 0 点赞 0 评论 257 浏览 评分:0.0
[编程入门]自定义函数之字符串反转(指针详解) 摘要:参考代码:#include<stdio.h> #include<string.h> void reverse(char* str) //(类型*) 是指针类型,str为指…… 题解列表 2022年06月27日 0 点赞 0 评论 251 浏览 评分:9.9
数组的简单应用 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,i,j; char a[1000]; get…… 题解列表 2022年06月20日 0 点赞 0 评论 303 浏览 评分: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 评论 287 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转(指针) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char *ptr,st[100]; int i,j; g…… 题解列表 2022年06月11日 0 点赞 0 评论 324 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#includeint main() { char ch[265],c; int i=0; while((c=getchar())!=EOF){ if(c…… 题解列表 2022年06月10日 0 点赞 0 评论 212 浏览 评分:0.0
自定义函数之字符串反转,C++解题 摘要:解题思路:调用C++自带的reverse函数注意事项:头文件algorithm参考代码:#include <iostream>#include<algorithm>using namespace st…… 题解列表 2022年06月07日 0 点赞 0 评论 277 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转(c++) 摘要:解题思路:先定义一个字符串,再反向输出注意事项:参考代码:#include<iostream>using namespace std;int main(){ string n; cin>>…… 题解列表 2022年05月23日 0 点赞 0 评论 587 浏览 评分:9.9
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>>s; for(int …… 题解列表 2022年05月21日 0 点赞 0 评论 261 浏览 评分:0.0