hello
i am doing a student regis course portal in data struc c++
and i want to do first a condition of
student with certain matric no's enter in specific time entered by the user..


now i am getting trouble with the condition for the time inputed with the matric no
to be more clear
it's like this
user input time now
in 24 hours and
matric number

from 0800 to 1200 for matric number from

073xxxx to 081xxxx
amd from 2100 to 2400
for 72xxxxx only.how???

here's my intial code

Code:

#include <iostream>

using namespace std;

int main()                            // Most important part of the program!
{
  int age,time;                            // Need a variable...

 cout<<"input the time now:";
 cin>>time;
  cout<<"Please input your matric number: ";    // Asks for age
  cin>> age;                          // The input is put in age
  cin.ignore();                       // Throw away enter

if(( age >= 730000) && (age <  820000)){

cout<<"You  may enter \n";
cout<<"this is your period\n";

}

  else if (( age <= 729999 ) && (age  >=  720000)){            // I use else just to show an example
     cout<<"You cannot enter\n";           // Just to show you it works...
  }
  else {
    cout<<"did you input properly????\n";     // Executed if no other statement is
  }
  cin.get();
}