Long time reader first time poster.

Hello, great site . I am developing a program that adds the sum of even numbers and the sum of odd numbers. I am self teaching myself C++ and have some problems with Express 2008, No window is comming up to input my numbers or the amount of numbers to enter. I believe the code I have wrote is pretty good. I did include the proper stuff in the header file like <iostream>. I did add a pause at the bottom last night and got the console window to stay open, but all that did was ask me to press any key which resulted in it closing.

Thanks for any help
Surefall


Code:
#include "header2.h"
using namespace std;



int main ()
{
int limit;
int counter;
int number;
int evensum;
int oddsum;

limit = 0;
counter = 0;
number = 0;
evensum = 0;
oddsum = 0;


cout<<"This program takes a set of numbers"<<endl;
cout<<"and gives the sum of the even and odd numbers"<<endl;
cout<<"enter the amount of numbers"<<endl;
cin>>limit;
cout<<"Please enter "<<limit<<" numbers"<<endl;
while(counter < limit)
{
cin>>number;
if(number % 2 == 0)
evensum = evensum + number;
else
oddsum = oddsum + number;
counter++;
}
cout<<"The sum of the even numbers is "<<evensum<<endl;
cout<<"The sum of the odd numbers is "<<oddsum<<endl;

return 0;
}