blob: 48b151bd0ce5894bc3aab1a920c5d33ae3e958bb (
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
|
#ifndef contactsheader
#define contactsheader
#define _CRT_SECURE_NO_WARNINGS
#include "contacts.h"
#include <iostream>
#include <cstring>
using std::numeric_limits;
using std::streamsize;
using std::cout;
using std::cin;
using std::endl;
constexpr size_t MAX_STREAM_SIZE = numeric_limits<streamsize>::max();
constexpr size_t MAX = 3;
struct contact
{
char Name[50] = {};
char Email[100] = {};
char Street[100] = {};
char city[30] = {};
char State[4] = {};
char Zip[50] = {};
};
void menu();
contact InputNewContact(const size_t size);
contact UpdateContact();
int ReadInt(const char* Prompt);
void Prompts(const char* phrase);
void OutputContacts(char* arrays, const char* prompt, int x);
void printcontacts();
contact* DeleteContactInformation();
const size_t DoubleArraySize(const size_t& size);
void DeleteEverything();
#endif
|