它是一个问题吗?! [英] Is it a question?!
问题描述
我没有决定,我需要帮助。
Q:
const int * pInt = new int(0);
删除pInt;
2003年11月6日03:14:10 -0800, xh ****** @ sina.com.cn (xhzeng)写道:
我我没有决定,我需要帮助。
问:
const int * pInt = new int(0);
删除pInt;
答:
c:\Dev \ test \ _dotnettest \ _dotnettest \ _dotnettest.cpp(2):错误C2059:
语法错误:''删除''
Tom
xhzeng写道:
我没有决定,我需要帮助。
你还没决定什么?
Q:
const int * pInt = new int(0);
删除pInt;
这是一段代码。不是一个有效的C ++程序,但可能是有效的
一部分。
但是问题是什么?
" xhzeng" < 1 H ****** @ sina.com.cn>在消息中写道
新闻:c2 ************************* @ posting.google.co m ... < blockquote class =post_quotes>我没有决定,我需要帮助。
const int * pInt = new int(0);
删除pInt;
不,不是。这不是一个问题。甚至
const int * const i = new int(0);
删除i;
不是问题,因为允许析构函数运行对于const对象
。
-
Michael Kochetkov。
I don''t decide it, and I need help.
Q:
const int* pInt = new int(0);
delete pInt;
On 6 Nov 2003 03:14:10 -0800, xh******@sina.com.cn (xhzeng) wrote:
I don''t decide it, and I need help.
Q:
const int* pInt = new int(0);
delete pInt;
A:
c:\Dev\test\dotnettest\dotnettest\dotnettest.cpp(2 ) : error C2059:
syntax error : ''delete''
Tom
xhzeng wrote:
I don''t decide it, and I need help.
You don''t decide what?
Q:
const int* pInt = new int(0);
delete pInt;
This is a piece of code. Not a valid C++ program, but might be valid as
part of one.
But what is the question?
"xhzeng" <xh******@sina.com.cn> wrote in message
news:c2*************************@posting.google.co m...I don''t decide it, and I need help.
Q:
const int* pInt = new int(0);
delete pInt;
No, it is not. It is not a question. Even
const int* const i = new int(0);
delete i;
is not a question because destructors are allowed to run for const objects
too.
--
Michael Kochetkov.
这篇关于它是一个问题吗?!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!