最佳答案:你这个题是ACM的题目?我看了下你的程序,正经的数字是可以的,但你说错了,那就该就是要考虑极限情况了.譬如x=0.00000000000000000000000
最佳答案:#includedouble fun(double x){double y = 0;if (x >= 0 x 20 x 40){y = x * x + 10
最佳答案:不用那么麻烦int a=1,b=2,i,k,n;float sum=0.0;scanf("%d",&n);for(i=0;i
最佳答案:void fangcheng(double a,double b,double c){double x1,x2;double delta=b^2-4*a*c;i
最佳答案:main() {calculate(6);calculate(4);calculate(-6);return 0;}float calculate(float
最佳答案:#includeint gongyue(int m,int n){int r;if(m==n) return m;elsewhile((r=m%n)!=0){m
最佳答案:include "stdio.h"int gongyue(int a,int b);int gongbei(int a,int b);void main(){i
最佳答案:求写大一的C语言程序:求方程ax^2+bx+c=0的根,用3个函数分别求当b^2-4ac大于0,等于0和小于0时的根,在主程序中输入a、b、c的值.请写大一的水
最佳答案:#include#include/*本题要求各函数的参数使用指针假设字母a、b、c、d、e、f的霍夫曼编码分别是1、00、011、0100、01010、0101
最佳答案:第一题:#include#define M 3#define N 4int main(){int array[M][N];int i, j;int max, m
最佳答案:main里面的aver应该写成0.0,然后就是f2里面的i应该赋值为i=0
最佳答案:#include//求a和b最大公约数:int yue(int a,int b){int k=1;int t=a>b?b:a;//a大取b,否则取afor(in
最佳答案:第一题:#include#include#define STUDENT_NUM 2 //学生数量,修改成10即可#define COURSE_NUM 5 //课