Only 2 inputs?

While running the program, my Dev C compiler will only let me input the first two statements, the third <"Enter the number of cable boxes:"> in just skips and ends the program. I have started this file 3 times and the same result each time. It is such a simple program, what could I be missing?



#include<iostream>
#include<iomanip>
#include<cmath>
#include<cctype>

using namespace std;

int main()
{
int id;
int serlv;
int nmbxs;
cout << "Cabletastic bill calculation program" << endl;
cout << endl;
cout << "Enter the customer ID:";
cin >> id;
cout << endl;
cout << "Service level ([B]asic, [P]referred)";
cin >> serlv;
cout << endl;
cout << "Enter the number of cable boxes:";
cin >> nmbxs;
cout << endl;


system ("PAUSE");
}
If you want to read a character then use a char variable.
I see what I did, thanks.
Topic archived. No new replies allowed.