aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYana Blashchishina <[email protected]>2024-01-09 21:08:15 -0800
committerYana Blashchishina <[email protected]>2024-01-09 21:08:15 -0800
commit2af9ae4a0c1388d0a5c2d8fa6fa55d2ef079c480 (patch)
tree5b7e755ef921a900e27bd52640b242a8659435b9
parentUpdate the header information (diff)
downloadarchived-yanablash-2af9ae4a0c1388d0a5c2d8fa6fa55d2ef079c480.tar.xz
archived-yanablash-2af9ae4a0c1388d0a5c2d8fa6fa55d2ef079c480.zip
in & out
-rw-r--r--Hello World/Hello World/Program.cpp60
1 files changed, 60 insertions, 0 deletions
diff --git a/Hello World/Hello World/Program.cpp b/Hello World/Hello World/Program.cpp
index f79fd8d..5947052 100644
--- a/Hello World/Hello World/Program.cpp
+++ b/Hello World/Hello World/Program.cpp
@@ -3,8 +3,68 @@
// Class: CST116
// Assignment: Inclass Exercise 1
+#include <iostream>
+
+using std::cout;
+using std::cin;
+using std::end1;
+
+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;
+
+ int i;
+
+ cout << "Enter a whole number: ";
+
+ cin >> i;
+
+ cout << "Here's your number: " << i << end1;
+
+
+
+
+
+
+
+ j = 102;
+ k = 13;
+
+ k = PORT + j + i;
+
return 0;
} \ No newline at end of file