Talk:New (c++)

From Wikipedia, the free encyclopedia

I did not know there is new operator in C also. Could anyone confirm it? --Leo 05:35, 18 March 2006 (UTC)

int main() {
        int *p=new int;
}

test.c:2: error: `new' undeclared (first use in this function)
test.c:2: error: (Each undeclared identifier is reported only once
test.c:2: error: for each function it appears in.)
test.c:2: error: syntax error before "int"

84.231.99.112 05:39, 18 March 2006 (UTC)

I deleted C implementation. --Leo 15:54, 8 April 2006 (UTC)