aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp')
-rw-r--r--CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp50
1 files changed, 30 insertions, 20 deletions
diff --git a/CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp b/CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp
index 0de941b..cae55e8 100644
--- a/CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp
+++ b/CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp
@@ -1,20 +1,30 @@
-// CST116F2021-Lab3.cpp : This file contains the 'main' function. Program execution begins and ends there.
-//
-
-#include <iostream>
-
-int main()
-{
- printf("hi");
-}
-
-// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
-// Debug program: F5 or Debug > Start Debugging menu
-
-// Tips for Getting Started:
-// 1. Use the Solution Explorer window to add/manage files
-// 2. Use the Team Explorer window to connect to source control
-// 3. Use the Output window to see build output and other messages
-// 4. Use the Error List window to view errors
-// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
-// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file
+CST116 C++
+
+6.4 5a pg 126 #1
+
+ 1.
+0
+2
+3
+2
+1
+
+7.1 pg 148 #1-6
+
+ 1. The sign is reversed. it should be <=
+ int_exp1 <= int_exp2
+ 2. There should be 2 equal signs
+ int_exp1 == int_exp2
+ 3. ! should be on the other side
+ int_exp1 != int_exp2
+ 4. Cant compare a string literal using relational quotes
+ char_exp == 'A'
+ 5. This is correct
+ 6. Has to have int_exp1 (on each side of operator)
+ int_exp1 < 2 && int_exp1 > -10
+
+7.2 pg 155 #1
+
+
+
+