Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- struct Student{
- string name;
- string matrix;
- int age;
- string course;
- };
- int main()
- {
- Student Person_A;
- Student Person_B;
- Person_A.name = "Aminah";
- Person_A.matrix = "12DIP11F1001";
- Person_A.age = 18;
- Person_A.course = "DIP";
- cout << "Please insert Person B's Name: " << endl;
- cin >> Person_B.name;
- cout << "Please insert Person B's Matrix Id: " << endl;
- cin >> Person_B.matrix;
- cout << "Please insert Person B's Age: " << endl;
- cin >> Person_B.age;
- cout << "Please insert Person B's Course: " << endl;
- cin >> Person_B.course;
- cout << "\n\n\nPerson A Info\n\nName : " << Person_A.name << "\nMatrix Number : " << Person_A.matrix << "\nAge : " << Person_A.age << "\nCourse : " << Person_A.course << endl;
- cout << "\nPerson B info\n\nName : " << Person_B.name << "\nMatrix Number : " << Person_B.matrix << "\nAge : " << Person_B.age << "\nCourse : " << Person_B.course << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement