1094: 字符串的输入输出处理 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; getchar…… 题解列表 2021年12月27日 0 点赞 0 评论 352 浏览 评分:0.0
C++素数判断,for循环,除法求余数判断素数,非素数的话采用exit(0);提前终止程序。默认2为素数 摘要:解题思路:for循环,除法求余数判断素数,非素数的话采用exit(0);提前终止程序。默认2为素数。注意事项:暂时不明参考代码:#include<iostream>using namespace st…… 题解列表 2021年12月27日 0 点赞 0 评论 537 浏览 评分:0.0
C++代码采用一维数组。主对角线好确定,法1其余手写。法2循环赋值转置。 摘要:解题思路:主对角线好确定法1其余手写,略法2循环赋值转置。if(j==i) continue; arr2[3*i+j]=arr1[3*j+i];//i+1是行,j+1是列。互换即可…… 题解列表 2021年12月27日 0 点赞 0 评论 352 浏览 评分:0.0
C++代码,使用string库 摘要:解题思路:逆序输出字符串for (int i=str.length()-1;i>=0;i--) cout<<str[i];注意事项:暂时不明参考代码:#include<iostream>#includ…… 题解列表 2021年12月27日 0 点赞 0 评论 356 浏览 评分:0.0
随便写写,看看就行 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void shuchu(char *p){ for(;*p!='\0';p++) printf("%c ",*p);}…… 题解列表 2021年12月27日 0 点赞 0 评论 347 浏览 评分:0.0
C++代码String库函数,for循环,索引 摘要:解题思路:for循环,索引注意事项:暂时不明参考代码:#include<iostream>#include<string>using namespace std;int main(){ stri…… 题解列表 2021年12月27日 0 点赞 0 评论 477 浏览 评分:0.0
1033: [编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int fun(char a[],char b[]){ int k=0; char …… 题解列表 2021年12月27日 0 点赞 0 评论 421 浏览 评分:0.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 评论 375 浏览 评分:0.0
C++string库,for循环,if判断元音,char数组 摘要:解题思路:string库,for循环,if判断元音,char数组注意事项:暂时不明参考代码:#include<iostream>#include<string>using namespace std;…… 题解列表 2021年12月28日 0 点赞 0 评论 1192 浏览 评分:0.0
C++代码 for循环 求余 整除 数组保存每位数值 逆序输出 摘要:解题思路:for循环 求余 整除 数组保存每位数值 逆序输出注意事项:暂时不明参考代码:#include<iostream>using namespace std;int main(){ int…… 题解列表 2021年12月28日 0 点赞 0 评论 1024 浏览 评分:0.0