From 1fe96b35b3e84cdff75dff9a64325f14e10d1502 Mon Sep 17 00:00:00 2001 From: Jennifer <170951762+RebeccaE23D@users.noreply.github.com> Date: Thu, 8 May 2025 13:08:54 -0700 Subject: [PATCH] Update main.cpp Created function to enter the player name --- Pokemon/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Pokemon/main.cpp b/Pokemon/main.cpp index c2bc7bfc..47949cca 100644 --- a/Pokemon/main.cpp +++ b/Pokemon/main.cpp @@ -1,6 +1,10 @@ #include +namespace std; int main() { - + string player_name; + cout << "Enter your name:"; + cin << player_name; + cout << "Great start " << player_name << ", looks like you have understood the main() function properly now!” << endl; return 0; }