[编程入门]自定义函数之字符串反转(指针详解) 摘要:参考代码:#include<stdio.h> #include<string.h> void reverse(char* str) //(类型*) 是指针类型,str为指…… 题解列表 2022年06月27日 0 点赞 0 评论 145 浏览 评分:9.9
数组的简单应用 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,i,j; char a[1000]; get…… 题解列表 2022年06月20日 0 点赞 0 评论 184 浏览 评分: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 评论 151 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转(指针) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char *ptr,st[100]; int i,j; g…… 题解列表 2022年06月11日 0 点赞 0 评论 211 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#includeint main() { char ch[265],c; int i=0; while((c=getchar())!=EOF){ if(c…… 题解列表 2022年06月10日 0 点赞 0 评论 125 浏览 评分:0.0
自定义函数之字符串反转,C++解题 摘要:解题思路:调用C++自带的reverse函数注意事项:头文件algorithm参考代码:#include <iostream>#include<algorithm>using namespace st…… 题解列表 2022年06月07日 0 点赞 0 评论 134 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转(c++) 摘要:解题思路:先定义一个字符串,再反向输出注意事项:参考代码:#include<iostream>using namespace std;int main(){ string n; cin>>…… 题解列表 2022年05月23日 0 点赞 0 评论 437 浏览 评分:9.9
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>>s; for(int …… 题解列表 2022年05月21日 0 点赞 0 评论 142 浏览 评分:0.0
挺容易理解的程序 摘要:解题思路:先去空格(32) 再逆序 注意事项:字符串s限制80字符以内 可以自行修改参考代码:#include <stdio.h> #include <string.h> void qu32(ch…… 题解列表 2022年05月11日 0 点赞 0 评论 229 浏览 评分:9.9
自定义函数之字符串反转 (c++的string 简单) 摘要:解题思路:就用字符串倒过来输出就可以了。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>…… 题解列表 2022年05月09日 0 点赞 0 评论 194 浏览 评分:0.0