C++ : 类和两种访问权限的练习 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;const int n=3 ;class MAX{&nb…… 题解列表 2025年03月21日 1 点赞 0 评论 2308 浏览 评分:10.0
三个数最大值 解题思路:条件表达式注意事项:参考代码:#includeintmain(){inta,b,c,d;scanf("%d%d%d",&a,&b,&c);d=(a>b)?a:((b>c)?b:c);printf("%d",d);return0;} 题解列表 2025年02月15日 36 点赞 2 评论 4182 浏览 评分:4.3
三个数求最大值 解题思路:先默认一个是最大,然后和其他的比较参考代码:#includemain(){inta,b,c,max;scanf("%d%d%d",&a,&b,&c);max=a;//假设a最大if(max 题解列表 2025年01月20日 12 点赞 0 评论 2542 浏览 评分:0.0 运用‘?’快速判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,max; &n…… 题解列表 2025年01月12日 27 点赞 1 评论 1593 浏览 评分:10.0 C语言 一维数组+简单函数解决问题 or 数组+指针解决问题 摘要:解题思路:注意事项:参考代码://方法一:一维数组+函数解决问题#include<stdio.h>#define n 3int compare( int a, int b ){…… 题解列表 2025年01月03日 0 点赞 0 评论 947 浏览 评分:0.0 运用if和else语句实现输出三个数的最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); max=…… 题解列表 2024年12月15日 9 点赞 0 评论 1850 浏览 评分:10.0 翁恺解题思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;int max=0;scanf("%d%d%d",&a,&b,&c);if(a>b){if(a…… 题解列表 2024年12月09日 4 点赞 0 评论 975 浏览 评分:0.0 编写题解 1002: [编程入门]三个数最大值 摘要:解题思路: 假设a是最大值,然后用a与b,c 比较,哪个大就让max等于哪个注意事项:参考代码:#include <stdio.h>int main() { int a, b, c; i…… 题解列表 2024年12月05日 11 点赞 0 评论 1253 浏览 评分:9.9 三个数最大值(C语言新手) 摘要:解题思路:用的if else语句嵌套注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(…… 题解列表 2024年11月10日 4 点赞 0 评论 1253 浏览 评分:10.0 用与运算解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a>b&&a>…… 题解列表 2024年11月03日 0 点赞 0 评论 549 浏览 评分:0.0 « 12345678...3435 »
运用‘?’快速判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,max; &n…… 题解列表 2025年01月12日 27 点赞 1 评论 1593 浏览 评分:10.0
C语言 一维数组+简单函数解决问题 or 数组+指针解决问题 摘要:解题思路:注意事项:参考代码://方法一:一维数组+函数解决问题#include<stdio.h>#define n 3int compare( int a, int b ){…… 题解列表 2025年01月03日 0 点赞 0 评论 947 浏览 评分:0.0
运用if和else语句实现输出三个数的最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); max=…… 题解列表 2024年12月15日 9 点赞 0 评论 1850 浏览 评分:10.0
翁恺解题思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;int max=0;scanf("%d%d%d",&a,&b,&c);if(a>b){if(a…… 题解列表 2024年12月09日 4 点赞 0 评论 975 浏览 评分:0.0
编写题解 1002: [编程入门]三个数最大值 摘要:解题思路: 假设a是最大值,然后用a与b,c 比较,哪个大就让max等于哪个注意事项:参考代码:#include <stdio.h>int main() { int a, b, c; i…… 题解列表 2024年12月05日 11 点赞 0 评论 1253 浏览 评分:9.9
三个数最大值(C语言新手) 摘要:解题思路:用的if else语句嵌套注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(…… 题解列表 2024年11月10日 4 点赞 0 评论 1253 浏览 评分:10.0
用与运算解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a>b&&a>…… 题解列表 2024年11月03日 0 点赞 0 评论 549 浏览 评分:0.0