aboutsummaryrefslogtreecommitdiff
path: root/Homework6/program.cpp
blob: c08993f809829c7ac8b407ec8e80a56a3df20457 (plain) (blame)
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
49
50
// Name: Asahel Lopez
// Date: 2/11/24
// Class: CST 116
// Assignment: Homework 5

#include <iostream>
#include <cstdlib>
#include "Contacts.h"

using std::cout;
using std::cin;
using std::endl;

int main()
{
	const int MAX = 10;

	Contact contacts[MAX] = {};
	int numberOfContacts = 0;

	char c = 'n';

	do {
		system("cls");
		cout << "1. Add New Contact\n";
		cout << "2. Update Contact\n";
		cout << "3. Print Contacts\n";
		cout << "Press 'x' to Exit\n\n";
		std::cin >> c;
		switch (c)
		{
		case '1':
			 contacts[numberOfContacts++] = InputNewContact();
			break;
		case '2':
			
		
			break;
		case '3':
			break;
		case 'x':
			break;
		default:
			cout << "\nInvalid\n";
		}

	} while (c != 'x');

	return 0;
}