From 6bd3339c9f889807e7bad8ff29bd46d642fd6896 Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Wed, 5 Oct 2022 16:50:00 -0700 Subject: test --- CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | 33 +++++++++++++++++++-------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp') diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp index 61ec88f..b758ea2 100644 --- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp +++ b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp @@ -5,11 +5,13 @@ #include #include #include +#include using namespace std; using std::cout; using std::cin; using std::endl; using std::string; +using std::to_string; int main() { @@ -18,20 +20,31 @@ int main() string n3; string n4; - float g1; + string g1; + string g2; + string g3; + string g4; - int i1; + string i1; + string i2; + string i3; + string i4; - + for (int i = 0; i < 4; i++) { - cout << "enter a name" << endl; - cin >> n1; - - cout << "enter a gpa" << endl; - cin >> g1; - cout << "enter an income" << endl; - cin >> i1; + cout << "enter a name" << endl; + cin >> n1; + + cout << "enter a gpa" << endl; + cin >> g1; + + cout << "enter an income" << endl; + cin >> i1; + + } + + return 0; -- cgit v1.2.3