Project Overview
Part of the Logic & Flow section of Coddy's C++ journey — lesson 18 of 56.
Challenge
EasyYou'll be building a command-line task list tool that demonstrates how vectors can be used to manage real-world data.
Create the foundation for a command-line task list tool by setting up the basic structure with an empty vector and displaying a welcome message with menu options.
Your program should:
- Create an empty
std::vector<std::string>namedtasksto store task descriptions - Display a welcome message for the task list application
- Display a menu showing the available options that users will be able to choose from
- Print a message confirming that the task list system is ready to use
Use the following exact output format:
Welcome to Task List Tool!
Menu Options:
1. Add Task
2. View Tasks
3. Quit
Task list system initialized and ready!This initial setup creates the foundation that will be expanded in the following lessons to build a complete task management application. The empty vector will store all tasks as strings, and the menu shows users what functionality will be available.
Try it yourself
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main() {
// TODO: Write your code here
return 0;
}All lessons in Logic & Flow
1Pointers and Memory
What is a Pointer?Address-Of OperatorDereference OperatorNull PointersPointers and ArraysDynamic Memory with 'new'Freeing Memory with 'delete'Recap - Pointer Practice2Vectors (Dynamic Arrays)
Introducing std::vectorCreating a VectorAdding ElementsAccessing ElementsVector SizeIterating with a For LoopRange-Based For LoopRemoving ElementsRecap - Vector Operations5Project: Inventory Tool
Project SetupAdding and Updating Items