From 7bb98f358e7543c58b287141a66a1fc5c40ec56b Mon Sep 17 00:00:00 2001 From: Alex-Collanton Date: Tue, 8 Feb 2022 20:16:09 -0800 Subject: [PATCH] fixed cin/cout errors --- main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index ecca4f4..d474016 100644 --- a/main.cpp +++ b/main.cpp @@ -6,13 +6,13 @@ int main() { int age; string name; - char last initial; + char last_initial; - cout<<"Hi. What is your first name? " - cin<>name; cout<<"name, what is the first letter of your last name? "; - cin>>last initial; - cout<<"Thanks, "<>last_initial; + cout<<"Thanks, "<>age>>endl;