From 1ae8226772a6a1f519b08d3287de8914ce25b0a9 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Fri, 9 Feb 2024 15:28:14 -0800 Subject: re-organized existing functions and structs --- Project1/Functions.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Project1/Functions.cpp') diff --git a/Project1/Functions.cpp b/Project1/Functions.cpp index cb478ba..868ac8f 100644 --- a/Project1/Functions.cpp +++ b/Project1/Functions.cpp @@ -5,3 +5,24 @@ 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; +} -- cgit v1.2.3