problem with array of floating point and store into array

1
2
3
4
5
6
7
8
9
10
11
12
13
int main()
{
	int i = 0 , x = 0;
	float donations[100] , arrayOfdonation[100];

	for( int i = 0 ; i < 100 ; i++ ){
		cout << "Enter donation: ";
		cin >> arrayOfdonation[i];
	}

	getch();//Pause the window
	return 0;
}


How should I put if my input arrayOfdonation == -1
My program will terminated? this is easy but I don't know where should I put for the input that have array of it .
Your question is not very clear. Can you rephrase it or be more clear?
yeah please be more clear your question..
Topic archived. No new replies allowed.