diff options
| -rw-r--r-- | Hello World/Hello World/Program.cpp | 52 | ||||
| -rw-r--r-- | Hello World/Homework1.sln | 31 |
2 files changed, 36 insertions, 47 deletions
diff --git a/Hello World/Hello World/Program.cpp b/Hello World/Hello World/Program.cpp index 5947052..499dfd4 100644 --- a/Hello World/Hello World/Program.cpp +++ b/Hello World/Hello World/Program.cpp @@ -1,51 +1,19 @@ // Name: Yana Blashchishina // Date: 1/9/24 // Class: CST116 -// Assignment: Inclass Exercise 1 +// Assignment: #include <iostream> using std::cout; using std::cin; -using std::end1; +using std::endl; -const int PORT = 1010; int main() { - int i = 10; - { - int q = 15; - } - int j = 5; - int k; - int size = sizeof(int); - - bool isTrue = false; - - float hasDecimalPoints = 1.235654654; - - double hasALOTofDecimalPoints; - - size_t thisIsABigNumber; - - unsigned int unsignedInt = -1; - - float myVar = 12.36; - - //int key = (int)myVar + 14; - - int key = static_cast<int>(myVar); - - - - - k = i + j; - - int thirty_five00; - - cout << "Hello World" << end1; + cout << "Hello World" << endl; int i; @@ -53,18 +21,8 @@ int main() cin >> i; - cout << "Here's your number: " << i << end1; - - - - - - - - j = 102; - k = 13; - - k = PORT + j + i; + cout << "Here's your number: " << i << endl; + return 0; }
\ No newline at end of file diff --git a/Hello World/Homework1.sln b/Hello World/Homework1.sln new file mode 100644 index 0000000..c88defd --- /dev/null +++ b/Hello World/Homework1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34031.279 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Hello World", "Hello World\Hello World.vcxproj", "{3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}" +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 + {3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Debug|x64.ActiveCfg = Debug|x64 + {3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Debug|x64.Build.0 = Debug|x64 + {3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Debug|x86.ActiveCfg = Debug|Win32 + {3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Debug|x86.Build.0 = Debug|Win32 + {3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Release|x64.ActiveCfg = Release|x64 + {3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Release|x64.Build.0 = Release|x64 + {3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Release|x86.ActiveCfg = Release|Win32 + {3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E15E7062-F6EF-43E2-8A94-6A579B7BE4F5} + EndGlobalSection +EndGlobal |