I've read and re-read the code but I can't find a logical conclusion as to why when run, there isn't a newline created between the start and end times. Both positive and negative advice is appreciated.
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
//start time and end time of shift
vector <int> vstart;
vector <int> vend;
vector <string> days_of_week = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
int start, end;
while (cin >> start) {
vstart.push_back(start);
}
while (cin >> end) {
vend.push_back(end);
}
for (string d : days_of_week) {
cout << d << "\t";
}
cout << endl << "---------------------------------------------------------\n";
for (int s : vstart) {
cout << s << "\t";
}
cout << endl;
for (int e : vend) {
cout << e << "\t";
}
cout << endl;
}