Create a new folder under C:\Beginning_C++ called Chapter_04. Start Visual C++ and create a C++ source file and save it to the folder you just created, as tasks.cpp. Add a simple main function without parameters, and provide support for input and output using C++ streams:
#include <iostream> #include <string> using namespace std; int main() { }
Above the main function, add a definition for the structure that represents a task in the list:
using namespace std; struct task { task* pNext; string description; };
This has two members. The guts of the object is the description item. In our example, executing a task will involve printing the description item to the console. In an actual project, you'll most likely ...