十几行代码直接搞定好叭
摘要:解题思路:#include <stdio.h>
int main()
{
int n,i,t;
scanf("%d",&n);
double a[n+1],an,max;//不用i……
简洁的方式找到最大值的下标(C语言)
摘要:解题思路: 简单遍历数组内元素然后找到最大值再输出下标注意事项:参考代码:#include<stdio.h>
int main()
{
int a, b, c = 0;
i……
3020: 最大数位置
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>int main(){ ……