aboutsummaryrefslogtreecommitdiff
path: root/Project1/Functions.cpp
blob: 868ac8f8621f54dd4525c6bef8114cab20f803f1 (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
#include <iostream>
#include "header.h"

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


void printUser(userDoB newUser)
{
	cout << "User's birthday is: " << newUser.month << "/" << newUser.day << "/" << newUser.year << endl;
}

userDoB inputPersonal()
{
	userDoB user = {};

	cout << "\n Please enter just the day you were born as a number: ";
	cin >> user.day;

	cout << "\n Please enter the month you were born as a number: ";
	cin >> user.month;

	cout << "\n Now please enter the year you were born as a number: ";
	cin >> user.month;

	return user;
}