View Single Post
Old May 26th, 2006, 10:15 AM   #4
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Brace mismatch, helps when you indent like:
#include <iostream>

using namespace std;

int main()
{
	int userinput, number[15];
	char choice;

	do
	{
		for (int i = 0; i < 15; i++)
		{
			cout << "Please enter a number:\n";
			cin >> userinput;
			number[i] = userinput;
		}
		cout << "Do you want to enter another number?";
		cin >> choice;
	}
	while(choice == 'y');

	cin.get();
}
I also removed the deprecated headers.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote