else if (choice == 2)
{
r:
s:
cout << "\n\n ~~~Student 2~~~"
"\n=>1. For Student ID "
"\n=>2. For Student First name "
"\n=>3. For Student Sure name "
"\n=>4. For Student Height "
"\n=>5. For Student SGPA "
"\n=>6. For Student Date of Birth "
"\n=>7. For Student Admission date "
"\n=>8. For detail display "
"\n=>9. For Return ";
while (1)
{
cout << "\nEnter your choice : ";
cin >> c;
if (c == 1)
{
cout << "Enter ID : ";
cin >> x;
s2.setid(x);
}
else if (c == 2)
{
cout << "Enter First Name : ";
cin >> v;
s2.setfname(v);
}
else if (c == 3)
{
cout << "Enter Sure Name : ";
cin >> v;
s2.setsname(v);
}
else if (c == 4)
{
cout << "Enter Height : ";
cin >> x;
s2.setheight(x);
}
else if (c == 5)
{
cout << "Enter SGPA : ";
cin >> x;
s2.setsgpa(x);
}
else if (c == 6)
{
while (1)
{
cout << "\n=> Student Admission date "
"\n=>1. For Enter Day "
"\n=>2. For Enter Month "
"\n=>3. For Enter Year "
"\n=>4. For Return to student menu"
"\nPlease enter you choice : ";
cin >> n;
if (n == 1)
{
cout << "Please Enter Admission day : ";
cin >> x;
doa.setday(x);
}
else if (n == 2)
{
cout << "Please Enter Admission month : ";
cin >> x;
doa.setmonth(x);
}
else if (n == 3)
{
cout << "Please Enter Admission year : ";
cin >> x;
doa.setyear(x);
}
else if (n == 4)
{
goto r;
}
else
return 0;
}
}
else if (c == 7)
{
while (1)
{
cout << "=> Student Date of birth "
"\n=>1. For Enter Day "
"\n=>2. For Enter Month "
"\n=>3. For Enter Year "
"\n=>4. For Return to student menu"
"\nPlease enter you choice :";
cin >> i;
if (i == 1)
{
cout << "Please Enter birth day : ";
cin >> x;
dob.setday(x);
}
else if (i == 2)
{
cout << "Please Enter birth month : ";
cin >> x;
dob.setmonth(x);
}
else if (i == 3)
{
cout << "Please Enter birth year : ";
cin >> x;
dob.setyear(x);
}
else if (i == 4)
{
goto s;
}
else
return 0;
}
}
else if (c == 8)
{
cout << " ~~~Student 2~~~\n";
s2.display();
}
else if (c == 9)
{
goto jump;
}
else
return 0;
}
}
else if (choice == 3)
{
t:
p:
cout << "\n\n ~~~Student 1~~~"
"\n=>1. For Student ID "
"\n=>2. For Student First name "
"\n=>3. For Student Sure name "
"\n=>4. For Student Height "
"\n=>5. For Student SGPA "
"\n=>6. For Student Date of Birth "
"\n=>7. For Student Admission date "
"\n=>8. For detail display "
"\n=>9. For Return ";
while (1)
{
cout << "\nEnter your choice : ";
cin >> c;
if (c == 1)
{
cout << "Enter ID : ";
cin >> x;
s3.setid(x);
}
else if (c == 2)
{
cout << "Enter First Name : ";
cin >> v;
s3.setfname(v);
}
else if (c == 3)
{
cout << "Enter Sure Name : ";
cin >> v;
s3.setsname(v);
}
else if (c == 4)
{
cout << "Enter Height : ";
cin >> x;
s3.setheight(x);
}
else if (c == 5)
{
cout << "Enter SGPA : ";
cin >> x;
s3.setsgpa(x);
}
else if (c == 6)
{
while (1)
cout << "=> Student Admission date "
"\n=>1. For Enter Day "
"\n=>2. For Enter Month "
"\n=>3. For Enter Year "
"\n=>4. For Return to student menu : ";
cin >> n;
if (n == 1)
{
cout << "Please Enter Admission day : ";
cin >> x;
doa.setday(x);
}
else if (n == 2)
{
cout << "Please Enter Admission month : ";
cin >> x;
doa.setmonth(x);
}
else if (n == 3)
{
cout << "Please Enter Admission year : ";
cin >> x;
doa.setyear(x);
}
else if (n == 4)
{
goto t;
}
else
return 0;
}
else if (c == 7)
{
while (1)
cout << "=> Student Date of birth "
"\n=>1. For Enter Day "
"\n=>2. For Enter Month "
"\n=>3. For Enter Year "
"\n=>4. For Return to student menu"
"\nplease enter you choice :";
cin >> i;
if (i == 1)
{
cout << "Please Enter birth day : ";
cin >> x;
dob.setday(x);
}
else if (i == 2)
{
cout << "Please Enter birth month : ";
cin >> x;
dob.setmonth(x);
}
else if (i == 3)
{
cout << "Please Enter birth year : ";
cin >> x;
dob.setyear(x);
}
else if (i == 4)
{
goto p;
}
else
return 0;
}
else if (c == 8)
{
cout << " ~~~Student 3~~~\n";
s3.display();
}
else if (c == 9)
{
goto jump;
}
else
return 0;
}
}
else
return 0;
}