自定义函数之字符串连接 摘要:解题思路:定义三个数组,两个数组存放输入的数组,最后一个数组存放最终的数组注意事项:利用string函数库中strlen函数计算出个数组中的元素个数参考代码:# include <stdio.h># …… 题解列表 2022年11月01日 0 点赞 1 评论 189 浏览 评分:0.0
直接蛇形输入 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,c,a[100][100],N,l,d; scanf("%d",&N); for(c=1,n…… 题解列表 2022年10月31日 0 点赞 0 评论 171 浏览 评分:9.9
1684: 数据结构-n阶Hanoi塔问题 摘要:解题思路:汉诺塔问题,就将其细分化注意事项:参考代码:#include using namespace std; int fun(int n, char x, char y, char z, in…… 题解列表 2022年10月31日 0 点赞 0 评论 288 浏览 评分:9.9
迭代法解决 摘要:# MarkDown编辑器基本使用说明 代码如下: ``` #include using namespace std; int main() { int N = 0; c…… 题解列表 2022年10月31日 0 点赞 0 评论 280 浏览 评分:9.9
敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100][100]; a[0][0]=1; int n; scanf ("%d",&…… 题解列表 2022年10月31日 0 点赞 0 评论 192 浏览 评分:0.0
敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n,r,p,q,k,w=0; char a[100][100]; while(~sc…… 题解列表 2022年10月31日 0 点赞 0 评论 207 浏览 评分:0.0
输入输出练习之格式控制(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<iomanip> int main() { int a…… 题解列表 2022年10月31日 0 点赞 0 评论 994 浏览 评分:8.0
输入输出练习之第二个数字(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>…… 题解列表 2022年10月31日 0 点赞 0 评论 1169 浏览 评分:7.3
汪汪与打针(C++简单逻辑清晰) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int f(int a,int b) //返回次数 { …… 题解列表 2022年10月31日 0 点赞 0 评论 235 浏览 评分:9.9
数组来做,优化了算法的 摘要:解题思路:注意事项:参考代码:#include#includeint main(){ int i,j,N,a[1000],b[1000],x,sum; scanf("%d",&N); for(i=6;…… 题解列表 2022年10月31日 0 点赞 0 评论 230 浏览 评分:9.9