Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct Specialization {
- string value;
- explicit Specialization(const string& s) {
- value = s;
- }
- };
- struct Course {
- string value;
- explicit Course(const string& s) {
- value = s;
- }
- };
- struct Week {
- string value;
- explicit Week(const string& s) {
- value = s;
- }
- };
- struct LectureTitle {
- Specialization specialization;
- Course course;
- Week week;
- LectureTitle(Specialization sp, Course co, Week we) {
- specialization = sp.value;
- course = co.value;
- week = we.value;
- }
- };
- int main(void) {
- LectureTitle title(
- Specialization("C++"),
- Course("White belt"),
- Week("4th")
- );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement