-
Notifications
You must be signed in to change notification settings - Fork 0
/
contacts.h
96 lines (78 loc) · 2.7 KB
/
contacts.h
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// ----------------------------------------------------------------------------
// DO NOT remove the below 2 lines.
// The below two lines is needed to ensure only one copy
// of this header file is included when compiling the project.
// (it is referred to as "safeguarding")
// You will learn about this in C++ (OOP244/BTP200)
// For now, simply leave this code in!
#ifndef CONTACTS_H_
#define CONTACTS_H_
// ----------------------------------------------------------------------------
/* -------------------------------------------
Name: Eric Rabiner
Student number: 038806063
Email: [email protected]
Section: L
Date: Tuesday, Nov. 13, 2018
----------------------------------------------
Assignment: 2
Milestone: 4
---------------------------------------------- */
//------------------------------------------------------
// Structure Types
//------------------------------------------------------
// +-------------------------------------------------+
// | NOTE: Copy/Paste your Assignment-2 Milestone-3 |
// | structures here... |
// +-------------------------------------------------+
// Structure type Name declaration
struct Name {
char firstName[31];
char middleInitial[7];
char lastName[36];
};
// Structure type Address declaration
// Place your code here...
struct Address {
unsigned int streetNumber;
char street[41];
unsigned int apartmentNumber;
char postalCode[8];
char city[41];
};
// Structure type Numbers declaration
// Place your code here...
struct Numbers {
char cell[11];
char home[11];
char business[11];
};
// Structure type Contact declaration
// Place your code here...
struct Contact {
struct Name name;
struct Address address;
struct Numbers numbers;
};
//------------------------------------------------------
// Function Prototypes
//------------------------------------------------------
// +-------------------------------------------------+
// | NOTE: Copy/Paste your Assignment-2 Milestone-3 |
// | function prototypes below... |
// +-------------------------------------------------+
// Get and store from standard input the values for Name
// Place your code here...
void getName(struct Name *);
// Get and store from standard input the values for Address
// Place your code here...
void getAddress(struct Address *);
// Get and store from standard input the values for Numbers
// Place your code here...
void getNumbers(struct Numbers *);
// Get and store from standard input the values for a Contact
// Place your code here...
void getContact(struct Contact *);
// ----------------------------------------------------------------------------
// DO NOT remove the below line (closing of the "safeguard" condition)
#endif // !CONTACTS_H_