C++代码,使用string库 摘要:解题思路:逆序输出字符串for (int i=str.length()-1;i>=0;i--) cout<<str[i];注意事项:暂时不明参考代码:#include<iostream>#includ…… 题解列表 2021年12月27日 0 点赞 0 评论 310 浏览 评分:0.0
随便写写,看看就行 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void shuchu(char *p){ for(;*p!='\0';p++) printf("%c ",*p);}…… 题解列表 2021年12月27日 0 点赞 0 评论 290 浏览 评分:0.0
C++代码String库函数,for循环,索引 摘要:解题思路:for循环,索引注意事项:暂时不明参考代码:#include<iostream>#include<string>using namespace std;int main(){ stri…… 题解列表 2021年12月27日 0 点赞 0 评论 426 浏览 评分:0.0
1033: [编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int fun(char a[],char b[]){ int k=0; char …… 题解列表 2021年12月27日 0 点赞 0 评论 372 浏览 评分:0.0
奇偶正整数分别排序(C语言)易理解代码!!! 摘要:解题思路:思路基本上分三步:一、实现数组奇偶排序,使奇数在前,偶数在后。此步骤难点在于如何让奇数全部靠前,所以我们需要双层循环,保证数组从第一个开始就是奇数,直到后面没有偶数为止。1、我们设两个变量i…… 题解列表 2021年12月28日 0 点赞 0 评论 1197 浏览 评分:6.2
编写题解 1097: 蛇行矩阵 摘要:解题思路:注意事项:参考代码:n = int(input()) lis = [[1]] for i in range(1,n): lis.append(list(range(lis[-1…… 题解列表 2021年12月28日 0 点赞 0 评论 285 浏览 评分:8.0
蓝桥杯算法提高VIP-交换Easy 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int n, m, x, y, i, t; int N[1000]; scanf("…… 题解列表 2021年12月28日 0 点赞 0 评论 323 浏览 评分:0.0
C++string库,for循环,if判断元音,char数组 摘要:解题思路:string库,for循环,if判断元音,char数组注意事项:暂时不明参考代码:#include<iostream>#include<string>using namespace std;…… 题解列表 2021年12月28日 0 点赞 0 评论 1148 浏览 评分:0.0
C++代码 for循环 求余 整除 数组保存每位数值 逆序输出 摘要:解题思路:for循环 求余 整除 数组保存每位数值 逆序输出注意事项:暂时不明参考代码:#include<iostream>using namespace std;int main(){ int…… 题解列表 2021年12月28日 0 点赞 0 评论 951 浏览 评分:0.0
C++代码string库函数,输入空格终止问题,采用getline 摘要:解题思路:https://www.cnblogs.com/Alan-kx/p/14320284.html读取空格终止导致for循环无法遍历全字符串问题注意事项:暂时不明参考代码:#include<io…… 题解列表 2021年12月28日 0 点赞 0 评论 580 浏览 评分:0.0