2817: 级数求和 摘要:``` #include using namespace std; int main(){ int k; double sn=0; cin>>k; for( int i=1; ;…… 题解列表 2023年11月13日 0 点赞 0 评论 249 浏览 评分:0.0
2818: 分离整数的各个数位(for循环) 摘要:``` #include using namespace std; int main(){ int a,b=0; cin>>a; for( int i=1;;i++ ){ b=…… 题解列表 2023年11月13日 0 点赞 0 评论 318 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:``` #include using namespace std; int main(){ int a,b=0; cin>>a; if( a%10==0 ){ a=a/10; …… 题解列表 2023年11月13日 0 点赞 0 评论 347 浏览 评分:0.0
1003: [编程入门]密码破译 摘要:``` #include using namespace std; int main(){ char a,b,c,d,e; cin>>a>>b>>c>>d>>e; a+=4; b…… 题解列表 2023年11月13日 0 点赞 0 评论 462 浏览 评分:0.0
c代码记录之自定义函数整数处理 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void input(int num[]) { int i; for(i=0;i<10;i++) …… 题解列表 2023年11月14日 0 点赞 0 评论 281 浏览 评分:0.0
2749: Hello, World! 摘要:高级解法之画蛇添足 ``` #include using namespace std; int main(){ string a="Hello",b="World!" co…… 题解列表 2023年11月14日 0 点赞 0 评论 275 浏览 评分:0.0
[简易解法]提取字符串中元音字母 摘要:解题思路:先想想看,如果我们要判断字符串并输出元音字母,我们该怎么做?对了,我们可以先写出字符串再对每一个字符进行判断,如果符合就输出啊!那么如何做到呢:我们需要for循环+if来判断 以及strle…… 题解列表 2023年11月14日 0 点赞 0 评论 490 浏览 评分:0.0
1131: C语言训练-斐波纳契数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,m=1,n=1,c=1; scanf("%d",&N); if(N==1) pri…… 题解列表 2023年11月14日 0 点赞 0 评论 349 浏览 评分:0.0
c代码记录之自定义函数数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> void deal(int num[],int n,int m){ int i…… 题解列表 2023年11月14日 0 点赞 0 评论 342 浏览 评分:0.0
c代码记录之n个数的排序 摘要:解题思路:选择排序法注意事项:参考代码:直接输入一组数进行排序#include<stdio.h> #include<stdlib.h> //创建函数用于数组排序 void sort(in…… 题解列表 2023年11月14日 0 点赞 0 评论 259 浏览 评分:0.0