标题:c错误cpp(9) : error C2064: term does not evaluate to a function
取消只看楼主
lilicup
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2011-12-21
结帖率:100%
已结贴  问题点数:10 回复次数:1 
c错误cpp(9) : error C2064: term does not evaluate to a function
#include<stdio.h>
main()
{
 int n;float x1,x2,y1,y2,max;
 printf("please input two points:");
 scanf("%f,%f %f,%f",&x1,&y1,&x2,&y2);
 printf("please input the coordinate:");
 scanf("%d",&n);
 max=max(x2,y1,y2);

 
 putchar('^');
 putchar('\n');
 for(int i=1;i<=n-1;i++)
 {
 putchar('+');
 for(int j=1;j<=n-1;j++)
     putchar(' ');
     putchar('\n');
 }
 for(int a=1;a<=n;a++)
 {putchar('+');putchar(' ');}
 putchar('>');
 return(0);
 }
float max(float a, float b, float c)
{float z,x;
z=a>b?a:b;
x=z>c?z:c;
return(x);
}
搜索更多相关主题的帖子: max function include 
2012-11-08 16:01
lilicup
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2011-12-21
得分:0 
回复 2楼 星闪夜空
谢谢
2012-11-09 11:17



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-386430-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.709406 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved