| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 720 人关注过本帖
标题:初学者的困惑,编译出错了.
只看楼主 加入收藏
gino86
Rank: 2
等 级:论坛游民
帖 子:66
专家分:77
注 册:2010-9-17
结帖率:100%
收藏
已结贴  问题点数:20 回复次数:4 
初学者的困惑,编译出错了.
#include <stdio.h> /* For command line input and output */
#include <limits.h> /* For limits on integer types */
#include <float.h> /* For limits on floating-point types */
int main(void)
{
printf("Variables of type char store values from %d to %d",
CHAR_MIN, CHAR_MAX);
printf("\nVariables of type unsigned char store values from 0 to %u",
UCHAR_MAX);
printf("\nVariables of type short store values from %d to %d",
SHRT_MIN, SHRT_MAX);
printf("\nVariables of type unsigned short store values from 0 to %u",
USHRT_MAX);
printf("\nVariables of type int store values from %d to %d", INT_MIN,
INT_MAX);
printf("\nVariables of type unsigned int store values from 0 to %u",
UINT_MAX);
printf("\nVariables of type long store values from %ld to %ld",
LONG_MIN, LONG_MAX);
printf("\nVariables of type unsigned long store values from 0 to %lu",
ULONG_MAX);
printf("\nVariables of type long long store values from %lld to %lld",
LLONG_MIN, LLONG_MAX);
printf("\nVariables of type unsigned long long store values from 0 to %llu",
ULLONG_MAX);
}


编译时出现错误:没有声明标示符:‘LLONG_MIN’'LLONG_MAX' 'ULLONG_MAX'。我是跟着书本敲的代码.
搜索更多相关主题的帖子: 困惑 编译 
2010-09-27 16:26
A13433758072
Rank: 11Rank: 11Rank: 11Rank: 11
来 自:广东潮州
等 级:小飞侠
威 望:1
帖 子:1182
专家分:2784
注 册:2010-7-22
收藏
得分:10 
你用书中用的编译器试试

一步一个脚印...............................默默地前进.....
诚邀乐于解答c菜鸟问题,的热心网友加入,  QQ群38490319
2010-09-27 16:33
gino86
Rank: 2
等 级:论坛游民
帖 子:66
专家分:77
注 册:2010-9-17
收藏
得分:0 
以下是引用A13433758072在2010-9-27 16:33:21的发言:

你用书中用的编译器试试
wintc, visual studio 2010, C与C++程序设计学习与实验系统 2010.4都用过了。
编译不过去。但是我不知道书中用的是什么编译器啊。
书本是C语言入门经典第四版
2010-09-27 16:43
xiaovs007
Rank: 2
来 自:青岛
等 级:论坛游民
帖 子:48
专家分:88
注 册:2010-5-16
收藏
得分:10 
用GCC编译没问题,楼主用的是vc6吧,vc6报错。
2010-09-27 16:47
gino86
Rank: 2
等 级:论坛游民
帖 子:66
专家分:77
注 册:2010-9-17
收藏
得分:0 
以下是引用xiaovs007在2010-9-27 16:47:00的发言:

用GCC编译没问题,楼主用的是vc6吧,vc6报错。
现在没有Linux系统,所以没有用gcc测试。visual studio2010也是vc6吗?
2010-09-27 16:48
快速回复:初学者的困惑,编译出错了.
数据加载中...
 
   



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

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