-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudentIDCArd.cpp
More file actions
60 lines (54 loc) · 1.46 KB
/
Copy pathStudentIDCArd.cpp
File metadata and controls
60 lines (54 loc) · 1.46 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
#include<iostream>
using namespace std;
class Student{
private:
string ID;
string universityName;
string Name;
string enrolledSemister;
string bloodGroup;
string dateOfBirth;
string department;
string mobileNumber;
public:
void get_StudentIno(){
cout<<"Enter you university name:\n";
getline(cin,universityName);
cout<<"Enter your ID:\n";
// cin>>ID;//scanf("%d",ID;
getline(cin,ID);
cout<<"Enter your name:"<<endl;
// cin>>Name;
getline(cin,Name);
cout<<"Enter your enrolled semister:\n";
// cin>>enrolledSemister;
getline(cin,enrolledSemister);
cout<<"Enter your Deparment name:\n";
// cin>>department;
getline(cin,department);
cout<<"Enter your date of birth:\n";
// cin>>dateOfBirth;
getline(cin,dateOfBirth);
cout<<"Enter your mobile number:\n";
cin>>mobileNumber;
getline(cin,mobileNumber);
cout<<"Enter your blood group:\n";
// cin>>bloodGroup;
getline(cin,bloodGroup);
}
void display(){
cout<<"Name :"<<Name<<endl;
cout<<"ID :"<<ID<<endl;
cout<<"Enrolled semister:"<<enrolledSemister<<endl;
cout<<"Department :"<<department<<endl;
cout<<"Date of birth :"<<dateOfBirth<<endl;
cout<<"Mobiel number :"<<mobileNumber<<endl;
cout<<"Blood group :"<<bloodGroup<<endl;
}
};
int main(){
Student object;
object.get_StudentIno();
object.display();
return 0;
}