cannot convert ‘double*’ to ‘double’ in assignment

not sure what I did wrong... the error comes from line 2
1
2
3
4
	double pmodelw;
	pmodelw = new double[15];
	
	
operator new returns pointer to created object. You cannot assign pointer to objec to that object
declare pmodelw as double* pmodelw
That was so easy, dont know how I missed that! thanks
Topic archived. No new replies allowed.