error C2440

icechef's Avatar, Join Date: Feb 2009
Go4Expert Member

cout <<
"What specification would you like to view "; // Displays A Task Title.
cin >> Z; // Stores Entered Values.
A = new (nothrow) int[Z]; //
if (A == 0) //
cout << "Error"; //
else
for (Y=0; Y<Z; Y++) //
cout << A [Y]<< ""; //

keep getting this error and just cant work it out any pointers its to do with the 3rd line down

error C2440: '=' : cannot convert from 'int *' to 'int *[10]'

0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
How is A defined?