aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYana Blashchishina <[email protected]>2024-01-17 17:17:38 -0800
committerYana Blashchishina <[email protected]>2024-01-17 17:17:38 -0800
commit89265a467a00b8a776e204eda3d16017a4314c37 (patch)
tree0af22b1784ec712142b18e25ea63708330de2275
parenthomework1 (diff)
downloadyanablash-89265a467a00b8a776e204eda3d16017a4314c37.tar.xz
yanablash-89265a467a00b8a776e204eda3d16017a4314c37.zip
homework 1
-rw-r--r--Hello World/Hello World/Program.cpp52
-rw-r--r--Hello World/Homework1.sln31
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