标题:新手编Visual C++6.0小程序,出不来
取消只看楼主
tian27667832
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2017-3-23
 问题点数:0 回复次数:3 
新手编Visual C++6.0小程序,出不来
一直显示有一处错误,就是找不到

#include<stdio.h>
int main(void)
{
    unsigned int un=3000000000;/*int为32位和short为16位的系统*/
    short end=200;
    long big=65537;
    long long verybig=12345678908642;

    printf("un=%u and not %d\n",un,un);
    printf("end=%hd and %d\n",end,end);
    printf("big=%ld and not %hd\n",big,big);
    printf("verybig=%lld and not %ld\n",verybig,verybig);

    return 0;
}
搜索更多相关主题的帖子: return 
2017-03-23 21:45
tian27667832
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2017-3-23
得分:0 
回复 2楼 wp231957
--------------------Configuration: 8 - Win32 Debug--------------------
Compiling...
8.cpp
D:\one\8.cpp(7) : error C2632: 'long' followed by 'long' is illegal
D:\one\8.cpp(7) : warning C4305: 'initializing' : truncation from 'const __int64' to 'long'
D:\one\8.cpp(7) : warning C4309: 'initializing' : truncation of constant value
执行 cl.exe 时出错.

8.obj - 1 error(s), 0 warning(s)

不好意思,我是新手,不过非常感谢您
2017-03-23 21:59
tian27667832
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2017-3-23
得分:0 
回复 4楼 wp231957
好的,非常感谢您
2017-03-23 22:03
tian27667832
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2017-3-23
得分:0 
回复 6楼 wp231957
2017-03-24 19:53



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




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

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