自定义函数求一元二次方程 摘要: #include #include #include using namespace std; float a, b, c, d, x1, x2; …… 题解列表 2022年10月11日 0 点赞 0 评论 307 浏览 评分:0.0
二维数组的转置 摘要: #include using namespace std; void fun() { int a[3][3], i, j,t; for (…… 题解列表 2022年10月11日 0 点赞 0 评论 347 浏览 评分:0.0
自定义函数之字符串反转 摘要: #include #include using namespace std; void fun(char a[], char b[]) { …… 题解列表 2022年10月11日 0 点赞 0 评论 294 浏览 评分:0.0
自定义函数之字符串连接 摘要: #include using namespace std; void fun(string s1, string s2) { cout s1 >> …… 题解列表 2022年10月11日 0 点赞 0 评论 296 浏览 评分:0.0
自定义函数之字符提取 摘要: #include #include using namespace std; void fun(char a[],char b[]) { i…… 题解列表 2022年10月11日 0 点赞 0 评论 339 浏览 评分:0.0
自定义函数之数字分离 摘要: #include #include using namespace std; void fun(int i) { int a, b, c, …… 题解列表 2022年10月11日 0 点赞 0 评论 314 浏览 评分:0.0
自定义函数之字符类型统计 摘要: #include #include using namespace std; void fun(char a[]) { int …… 题解列表 2022年10月11日 0 点赞 0 评论 298 浏览 评分:0.0
Sn的公式求和 摘要:解题思路: 循环+pow函数因为每个数的每一位上都是2,故联想到for循环取出每一个数将每一个数存在a中,利用for循环相加注意事项:参考代码:# include <stdio.h># includ…… 题解列表 2022年10月11日 0 点赞 0 评论 326 浏览 评分:0.0
1156-阿姆斯特朗数(代码简洁,思路清晰) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int res,t; …… 题解列表 2022年10月11日 0 点赞 0 评论 357 浏览 评分:0.0
1671-小九九(代码简洁,思路清晰) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=1;i<=9;i++) …… 题解列表 2022年10月11日 0 点赞 0 评论 315 浏览 评分:0.0