-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject2Sample.cpp
More file actions
48 lines (45 loc) · 1.37 KB
/
project2Sample.cpp
File metadata and controls
48 lines (45 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* project2.cpp
*
* The main function calls two other functions. testPhoneBook and testList
*
* The testList function tests the DoubleLinkedList class.
*
* The testPhoneBook function tests the PhoneBook class which also uses
* the PhoneBookEntry class and the OrderedDoubleLinkedList class.
*
*/
#include <iostream>
#include <string>
#include "incrementCommand.h"
#include "decrementCommand.h"
#include "menuList.h"
#include "menuList.cpp"
//int main()
//{
// // create the int variable. This will be updated by the commands below
// int value = 0;
//
// // create the commands
// incrementCommand increment(value);
// decrementCommand decrement(value);
//
// // build the menuList and menuItems
// menuList menu("Simple menu:");
// // these are the actual menu entries for the application
// menuItem incrementItem('i', "increment", increment); // increment menu command
// menuItem decrementItem('d', "decrement", decrement); // decrement menu command
// // note that the quit command is added to the menu automatically
//
// // add the menuItem values to the menulist
// menu.add(incrementItem);
// menu.add(decrementItem);
//
// std::cout << "Starting the Simple Menu Program" << std::endl;
// std::cout << std::endl;
//
// // run the menu
// menu.start();
//
// return 0;
//}