-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent-management-system.cpp
More file actions
86 lines (83 loc) · 1.92 KB
/
Copy pathStudent-management-system.cpp
File metadata and controls
86 lines (83 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//Atiq umer
//Roll no 483
#include<iostream>
#include<string>
using namespace std;
int main(){
int z,b,d,no,j,f;
cout<<endl;
cout<<"----------STUDENT DATABASE MANAGEMENT SYSTEM----------\n";
cout<<"Enter the number of the students: ";
cin>>no;
string C[no], N[no],R[no],F[no];
string a[no];
cout<<"\n";
cout<<"----------DATA ENTRY POINT----------\n";
cout<< "\n";
for (int i = 0; i<no; i++)
{
cout << "Enter the name of the Student "<<i+1<<" : ";
cin>>N[i];
}
cout<< "\n";
for(int y=0;y<no;y++)
{
cout<<"Enter Father name of student "<<" "<<y+1<<" : ";
cin>>F[y];
}
cout<< "\n";
for (int j = 0; j<no; j++)
{
cout << "Enter the city of student "<<" "<<j+1<<" : ";
cin>>C[j];
}
cout<<endl;
for (int k = 0; k<no;k++)
{
cout << "Enter the roll no of student "<<" "<<k+1<<" : ";
cin>>R[k];
}
cout<< "\n";
for (int z = 0; z<no; z++)
{
cout << "Enter the grade of student "<<" "<<z+1<<" : ";
cin>>a[z];
}
cout<<endl;
cout<<" Data is entered succesfully"<<endl;
cout<<"\n\n";
cout<<" Press 1 to check data...."<<endl;
cout<<" Press 2 for exit...."<<endl;
cin>>j;
if(j==1){
cout<<"----------DATA GETTING POINT----------\n";
cout<<endl;
h:
//Here we are printing result of that student which index number is enetered by user
for (int z = 0; z < no; z++)
{
cout << "Enter the number of the student of which data you want to see"<<endl;
cout<<"NOTE:INDEX STARTS FROM O AND GOES TO "<<no-1<<endl;
cin >> b;
if (b < no)
{
cout << "The Student name is: " << N[b] << endl;
cout<<"Student father name is "<<F[b]<<endl;
cout << "The city of the student is: " << C[b] << endl;
cout << "The roll no of the student is: " << R[b] << endl;
cout << "The grade of the student is: " << a[b] << endl;
break;
}
else
{
cout<<"Invalid input\n";
goto h;
}
}
}
else if(j==2);
{
exit(0);
}
cout<<"THANKS FOR�USING"<<endl;
}