Help the error states:
.cpp(31) : error C2337: 'count' : attribute not found
referring to new[count] = value; as the problem.

My code is the following:

int main()
{
 int size = 20;
 new double[size]; 


 for(int count = 0; count <= size; count++)
 {
	 int value;
	 cout << "Enter a value for element #" << count << " : ";
	 cin >> value;
	 new[count] = value;	
 }
return 0;
}

Solved it my self lol, but for the sake of others in the same silly situation, the solution:

int size = 20;
 double * numList = new double[size]; 


 for(int count = 0; count <= size; count++)
 {
	 int value;
	 cout << "Enter a value for element #" << count << " : ";
	 cin >> value;
	 numList[count] = value;
 }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.