-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtry3.cpp
48 lines (39 loc) · 814 Bytes
/
try3.cpp
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
#include <iostream>
using namespace std;
// Main Area
int main()
{
string name, age, gender;
int id;
cout << "Enter sudent id: ";
cin >> id;
cout << "Enter sudent name: ";
cin >> name;
cout << "Enter sudent age: ";
cin >> age;
cout << "Enter sudent Gender: ";
cin >> gender;
string STI,GRD, INR;
cout << "Enter sudent id: ";
cin >> id;
cout<< "Enter for student info--STI, Grade--GRD, instractor--INR: ";
cin >> STI;
// switch
if("STI"){
cout << "Stu info"<< endl;
cout << "name: "<< name <<endl;
cout << "Age: "<< age <<endl;
cout << "Gender: "<< gender;
}
else if("GRD"){
cout << "Stu GRD RESULT IS"<< endl;
}
else if("INR"){
cout << "Stu GRD RESULT IS"<< endl;
}
else {
cout << "Error! stu id is not correct"<< endl;
return 0;
}
return 0;
}