diff options
| author | Musa Ahmed <[email protected]> | 2022-10-05 20:28:06 -0700 |
|---|---|---|
| committer | Musa Ahmed <[email protected]> | 2022-10-05 20:28:06 -0700 |
| commit | 841714e9108ca3ac153dbd547ed92ff638a6c33d (patch) | |
| tree | 51aa3e8423ff1dbcbb96e5c329c3adb605122ed9 /CST116-Ch5-Debugging/CST116-Project1.cpp | |
| parent | got main thingy working (diff) | |
| download | cst116-proj1-841714e9108ca3ac153dbd547ed92ff638a6c33d.tar.xz cst116-proj1-841714e9108ca3ac153dbd547ed92ff638a6c33d.zip | |
semi finished w pt 1
Diffstat (limited to 'CST116-Ch5-Debugging/CST116-Project1.cpp')
| -rw-r--r-- | CST116-Ch5-Debugging/CST116-Project1.cpp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Project1.cpp b/CST116-Ch5-Debugging/CST116-Project1.cpp new file mode 100644 index 0000000..d45c035 --- /dev/null +++ b/CST116-Ch5-Debugging/CST116-Project1.cpp @@ -0,0 +1,57 @@ + +// Name: Musa Ahmed, Course: CST116, Lab # 0, Learn how to debug and how to use an IDE as well as GitHub + +#include <iostream> +#include <iomanip> +#include <string> +#include <list> +#include <bitset> +#include <vector> +using namespace std; +using std::cout; +using std::cin; +using std::endl; +using std::string; +using std::to_string; + +int main() +{ + + vector<string> n; + vector<string> g; + vector<string> c; + + string temp; + + + for (int i = 0; i < 4; i++) { + + cout << "Enter a name: " << endl; + cin >> temp; + n.push_back(temp); + + cout << "Enter a gpa: " << endl; + cin >> temp; + g.push_back(temp); + + cout << "Enter an income: " << endl; + cin >> temp; + c.push_back(temp); + + } + for (int i = 0; i < 4; i ++) { + cout << "Profile #" << i << ' ' << + "Name: " << n[i] << ' ' << + "GPA: " << g[i] << ' ' << + "Income: " << c[i] << endl; + } + + return 0; + + + + + + + +}
\ No newline at end of file |