| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1541 人关注过本帖
标题:what does the first error mean??????????
取消只看楼主 加入收藏
crazyc
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-8-5
收藏
 问题点数:0 回复次数:2 
what does the first error mean??????????

#include<iostream>
int main()
{
int x=5;
int*p=&++x;
int *q=&x++;
}

--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
C:\Documents and Settings\Administrator\桌面\daima\Cpp1.cpp(6) : error C2102: '&' requires l-value
C:\Documents and Settings\Administrator\桌面\daima\Cpp1.cpp(7) : warning C4508: 'main' : function should return a value; 'void' return type assumed
执行 cl.exe 时出错.

Cpp1.obj - 1 error(s), 0 warning(s)
what does the first error mean??????????

搜索更多相关主题的帖子: does first mean int 
2007-03-18 08:13
crazyc
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-8-5
收藏
得分:0 

不好意思斑竹
我的意思是 为什么提示出错
lvalue怎么理解啊

2007-03-18 13:20
crazyc
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-8-5
收藏
得分:0 
int *q=&x++;
提示出错的是这一句哦
大家只要告诉我
int*p=&++x;
int *q=&x++;
这两个之间是什么区别啊,为什么一个对一个又不对 呐
2007-03-20 06:30
快速回复:what does the first error mean??????????
数据加载中...
 
   



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

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