1234567891011121314151617181920212223242526272829303132333435363738
#include <iostream> #include <string> #include <time.h> using namespace std; int main() { cout << "\nReminders\n\n"; string tasks[0]; string times[0]; int i = 1; bool addTask = 1; while (addTask) { addTask = 0; cout << "Remind me to: "; cin.ignore(); getline(cin, tasks[i]); cout << "\nAt this time: "; cin.ignore(); getline(cin, times[i]); i++; cout << "\n\nWould you like to add another reminder: "; string addTaskChoice; cin >> addTaskChoice; if (addTaskChoice == "Yes" | addTaskChoice == "yes") { addTask = 1; } } }