| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1156 人关注过本帖
标题:除了vc 6.0外还有什么编译器
取消只看楼主 加入收藏
高莫野
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2010-10-20
收藏
 问题点数:0 回复次数:0 
除了vc 6.0外还有什么编译器
除了vc 6.0外还有什么编译器(在网上下载turbo c 全有病毒,不敢用,谁提供个没毒的),教材是c语言程序设计,高等教育司出版的,99年第一版。用vc6.0出了如下错误:
error C2065: 'max' : undeclared identifier
error C2065: 'x' : undeclared identifier
error C2065: 'y' : undeclared identifier
error C2065: 'z' : undeclared identifier
error C2447: missing function header (old-style formal list?)
源程序(照着书上打的):
#include<stdio.h>
main()                           
    {int a,b,c,imax;                  
    printf("please input a,b,c\n");
    scanf("%d,%d,%d",&a,&b,&c);      
    imax=max(a,b,c);                  
    printf("maximum=%d\n",imax);   
    }
    int max(x,y,z);                  
    int x,y,z;                        
    {
    int m;                           
    if (x>y)
        m=x;
    else m=y;
    if (m<z)
        m=z;
    return(m);            
    }
搜索更多相关主题的帖子: 编译 
2010-10-20 23:29
快速回复:除了vc 6.0外还有什么编译器
数据加载中...
 
   



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

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