使用string提取字符 摘要:解题思路:1、先定义两个字符串,一个用于接收用户输入的数据,一个用于接收aeiou2、求出用户输入字符串的长度3、利用求出的长度遍历用户输入的字符串,并找到aeiou4、把aeiou放入用于接收的字符…… 题解列表 2024年01月19日 0 点赞 0 评论 254 浏览 评分:0.0
题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long n,s=0; cin>>n; …… 题解列表 2024年01月19日 0 点赞 0 评论 140 浏览 评分:0.0
计算多项式的值 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double x, a, b, c, d; scanf("%lf %lf %lf %lf %lf"…… 题解列表 2024年01月19日 0 点赞 0 评论 269 浏览 评分:0.0
题解 2829: 数1的个数 摘要:解题思路:分离数位注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; …… 题解列表 2024年01月19日 0 点赞 0 评论 125 浏览 评分:0.0
1056:温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); float y; y = (5.0/9.0…… 题解列表 2024年01月19日 0 点赞 0 评论 150 浏览 评分:0.0
2749:计算并联电阻的阻值 摘要:解题思路:注意事项:参考代码:int main(){ float r1 = 0 , r2 = 0 , R; scanf("%f %f", &r1, &r2); R = 1 / (1 …… 题解列表 2024年01月19日 1 点赞 0 评论 245 浏览 评分:0.0
向上递增单次尾部循环公式求和 摘要:解题思路:构造一函数调用自身,每次调用保存上次计算的结果,每一项an都在增加,故多设一参数保存an项注意事项:循环的结束条件应与递增方向相关参考代码:/*求Sn=a+aa+aaa+…+aa…aaa(有…… 题解列表 2024年01月19日 0 点赞 0 评论 123 浏览 评分:0.0
C++输出所有水仙花数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int i,j; int a,b,c; for(i…… 题解列表 2024年01月19日 0 点赞 0 评论 174 浏览 评分:0.0
2757:浮点数向零舍入 摘要:注意事项:参考代码:#include<stdio.h>int main(){ float a = 0; scanf("%f",&a); int b = 0; b = a; …… 题解列表 2024年01月19日 1 点赞 0 评论 311 浏览 评分:0.0
2758:打印ASC11码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a; scanf("%c",&a); printf("%d\n",a); re…… 题解列表 2024年01月19日 0 点赞 0 评论 255 浏览 评分:0.0