By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,797 Members | 1,836 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,797 IT Pros & Developers. It's quick & easy.

2 Errors

P: 35
fatal error C1004: unexpected end of file found
error C2447: missing function header (old-style formal list?)

int age;
int count1 = 0;
int count2 = 0;
int count3 = 0;
{
cout << "Enter an age: ";
cin >> age;

if ( age <= 17 )
{
count1++;
}

else if ( age < 65 )
{
count2++;
}

else if ( age >= 65 )
{

count3++;
}

while ( age != -1 );

{

if (age <= 17)

{

cout << "17 years old or less" << seventeen_old <<endl

}

}

{

if (age <= 65)

{

cout << "Adult 18 to 64" << adult_old <<endl

}

{

if ( age >= 65 )

{

cout << "65 years old or more" << sixtyfive_old <<endl
}
Nov 3 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.