Hello everyone,
What is wrong with the code, I just want to allocate an array of 100
void* pointers. :-)
1>d:\visual studio 2008\projects\t est_void1\test_ void1\main.cpp( 5) :
error C3409: empty attribute block is not allowed
1>d:\visual studio 2008\projects\t est_void1\test_ void1\main.cpp( 5) :
error C2143: syntax error : missing ']' before 'constant'
1>d:\visual studio 2008\projects\t est_void1\test_ void1\main.cpp( 5) :
error C2143: syntax error : missing ';' before 'constant'
1>d:\visual studio 2008\projects\t est_void1\test_ void1\main.cpp( 5) :
error C2143: syntax error : missing ';' before ']'
1>d:\visual studio 2008\projects\t est_void1\test_ void1\main.cpp( 5) :
error C2143: syntax error : missing ';' before ']'
thanks in advance,
George
What is wrong with the code, I just want to allocate an array of 100
void* pointers. :-)
Code:
int main()
{
void** p;
p = new (void*) [100];
return 0;
}
>d:\visual studio 2008\projects\t est_void1\test_ void1\main.cpp( 5) : error C2143: syntax error : missing ';' before '['
error C3409: empty attribute block is not allowed
1>d:\visual studio 2008\projects\t est_void1\test_ void1\main.cpp( 5) :
error C2143: syntax error : missing ']' before 'constant'
1>d:\visual studio 2008\projects\t est_void1\test_ void1\main.cpp( 5) :
error C2143: syntax error : missing ';' before 'constant'
1>d:\visual studio 2008\projects\t est_void1\test_ void1\main.cpp( 5) :
error C2143: syntax error : missing ';' before ']'
1>d:\visual studio 2008\projects\t est_void1\test_ void1\main.cpp( 5) :
error C2143: syntax error : missing ';' before ']'
thanks in advance,
George
Comment