-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlan.cpp
More file actions
22 lines (19 loc) · 692 Bytes
/
Plan.cpp
File metadata and controls
22 lines (19 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "IIKH.h" // Include the header file containing the Plan class and other dependencies
#include <iostream>
using namespace std;
// Constructor implementation for Plan
Plan::Plan(const std::string& name, const std::string& date) {
Plan::planName = name;
Plan::date = date;
}
// Display the meal plan details
void Plan::display() const {
cout << "PLAN: " << planName << " <" << date << ">\n";
cout << "BREAKFAST -";
for (const auto& meal : breakfast) cout << meal << " ";
cout << "\nLUNCH -";
for (const auto& meal : lunch) cout << meal << " ";
cout << "\nDINNER -";
for (const auto& meal : dinner) cout << meal << " ";
cout << endl << endl;
}