aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMusa Ahmed <[email protected]>2022-10-05 16:50:00 -0700
committerMusa Ahmed <[email protected]>2022-10-05 16:50:00 -0700
commit6bd3339c9f889807e7bad8ff29bd46d642fd6896 (patch)
tree6e7299bafe40b17397520791ff0aeb887485cdd8
parentone person (diff)
downloadcst116-proj1-6bd3339c9f889807e7bad8ff29bd46d642fd6896.tar.xz
cst116-proj1-6bd3339c9f889807e7bad8ff29bd46d642fd6896.zip
test
-rw-r--r--CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp33
1 files changed, 23 insertions, 10 deletions
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 <iomanip>
#include <string>
#include <list>
+#include <bitset>
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;