diff options
| -rw-r--r-- | Hello World/Hello World/Program.cpp | 60 |
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 |