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 | |
| parent | got main thingy working (diff) | |
| download | archived-cst116-proj1-841714e9108ca3ac153dbd547ed92ff638a6c33d.tar.xz archived-cst116-proj1-841714e9108ca3ac153dbd547ed92ff638a6c33d.zip | |
semi finished w pt 1
| -rw-r--r-- | CST116-Ch5-Debugging/CST116 - Project 1.sln (renamed from CST116-Ch5-Debugging/CST116-Ch5-Debugging.sln) | 62 | ||||
| -rw-r--r-- | CST116-Ch5-Debugging/CST116-Ch5-Debugging-Ahmed.png | bin | 127412 -> 0 bytes | |||
| -rw-r--r-- | CST116-Ch5-Debugging/CST116-Ch5-Debugging-Ahmed.txt | 7 | ||||
| -rw-r--r-- | CST116-Ch5-Debugging/CST116-Project1.cpp (renamed from CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp) | 112 |
4 files changed, 87 insertions, 94 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.sln b/CST116-Ch5-Debugging/CST116 - Project 1.sln index 61b265b..0e0f5ba 100644 --- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.sln +++ b/CST116-Ch5-Debugging/CST116 - Project 1.sln @@ -1,31 +1,31 @@ -
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.3.32804.467
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CST116-Ch5-Debugging", "CST116-Ch5-Debugging.vcxproj", "{656289CE-6A7B-4681-B61A-B8BD2CF9E712}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x64 = Debug|x64
- Debug|x86 = Debug|x86
- Release|x64 = Release|x64
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Debug|x64.ActiveCfg = Debug|x64
- {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Debug|x64.Build.0 = Debug|x64
- {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Debug|x86.ActiveCfg = Debug|Win32
- {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Debug|x86.Build.0 = Debug|Win32
- {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Release|x64.ActiveCfg = Release|x64
- {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Release|x64.Build.0 = Release|x64
- {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Release|x86.ActiveCfg = Release|Win32
- {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Release|x86.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {814ACEF9-6F20-4A06-B885-731651BC52DC}
- EndGlobalSection
-EndGlobal
+ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32804.467 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CST116-Ch5-Debugging", "CST116-Ch5-Debugging.vcxproj", "{656289CE-6A7B-4681-B61A-B8BD2CF9E712}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Debug|x64.ActiveCfg = Debug|x64 + {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Debug|x64.Build.0 = Debug|x64 + {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Debug|x86.ActiveCfg = Debug|Win32 + {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Debug|x86.Build.0 = Debug|Win32 + {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Release|x64.ActiveCfg = Release|x64 + {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Release|x64.Build.0 = Release|x64 + {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Release|x86.ActiveCfg = Release|Win32 + {656289CE-6A7B-4681-B61A-B8BD2CF9E712}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {814ACEF9-6F20-4A06-B885-731651BC52DC} + EndGlobalSection +EndGlobal diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging-Ahmed.png b/CST116-Ch5-Debugging/CST116-Ch5-Debugging-Ahmed.png Binary files differdeleted file mode 100644 index f0a4842..0000000 --- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging-Ahmed.png +++ /dev/null diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging-Ahmed.txt b/CST116-Ch5-Debugging/CST116-Ch5-Debugging-Ahmed.txt deleted file mode 100644 index 6f13748..0000000 --- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging-Ahmed.txt +++ /dev/null @@ -1,7 +0,0 @@ -You have $123.45 -Enter percent raise: 0.1 -After your raise you have $135.795 - -C:\Users\macho\Source\Repos\cst116-ch5-debugging-M005A\CST116-Ch5-Debugging\x64\Debug\CST116-Ch5-Debugging.exe (process 6924) exited with code 0. -To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops. -Press any key to close this window . . .
\ No newline at end of file diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp b/CST116-Ch5-Debugging/CST116-Project1.cpp index 8b1803b..d45c035 100644 --- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp +++ b/CST116-Ch5-Debugging/CST116-Project1.cpp @@ -1,57 +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;
-
-
-
-
-
-
-
+ +// 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 |