GSP 125 Possible Is Everything--snaptutorial.com - PowerPoint PPT Presentation

About This Presentation
Title:

GSP 125 Possible Is Everything--snaptutorial.com

Description:

For more classes visit www.snaptutorial.com Question 1. 1. In addition to grouping functions together, a class also groups (Points : 3) libraries. math operations. print statements. variables. Question 2. 2. Hiding data in a class is also called (Points : 3) encapsulation. accessibility inversion. confusion culling. – PowerPoint PPT presentation

Number of Views:3
Slides: 11
Provided by: romanregn20

less

Transcript and Presenter's Notes

Title: GSP 125 Possible Is Everything--snaptutorial.com


1
GSP 125 Possible Is Everything/snaptutorial.com
2
GSP 125 Possible Is Everything/snaptutorial.com
GSP 125 Final Exam Guide For more classes
visit www.snaptutorial.com   Question 1. 1. In
addition to grouping functions together, a class
also groups (Points 3) libraries.
math operations. print statements.
variables. Question 2. 2. Hiding data in a
class is also called (Points 3)
encapsulation. accessibility inversion.
confusion culling. redirection.
3
GSP 125 Possible Is Everything/snaptutorial.com
GSP 125 Midterm Exam   For more classes
visit www.snaptutorial.com   1. Accidentally
inheriting from the same class twice causes
terrible ambiguity, and is known as (Points 2)
inheritance overload. the dreaded
diamond of death. Von Neumann bottleneck.
There is nothing wrong with inheriting the
same class more than once. Question 2. 2.
Creating classes in separate .h and .cpp files is
good because (Points 2) moving code to
separate files is good design (separation of
concerns). separating declaration from
definition allows de-coupling of dependencies.
many smaller files are easier to maintain by
teams of programmers. All of the above
4
GSP 125 Possible Is Everything/snaptutorial.com
GSP 125 Week 1 iLab Simple game   For more
classes visit www.snaptutorial.com   GSP 125
GSP\125 GSP 125 Week 1 iLab // // //
INSTRUCTIONS -----------Compile this code. You
should see a happy-face character on a field
of periods. You can move the character with the
'w', 'a', 's', and 'd' keys. Read through this
code! Try to understand it before starting the
assignment. Comment confusing lines with what you
think code is doing, and experiment with existing
code to test your understanding.
5
GSP 125 Possible Is Everything/snaptutorial.com
GSP 125 Week 2 ILab Rectangles For more classes
visit www.snaptutorial.com   / lab2
rectangles // ltinsert your name heregt //
read main.cpp, and follow the instructions at the
bottom of main.cpp define NOMINMAX // prevent
Windows API from conflicting with quotminquot
and quotmaxquot include ltstdio.hgt //
C-style output. printf(char,...),
putchar(int) include ltwindows.hgt //
SetConsoleCursorPosition(HANDLE,COORD) include
ltconio.hgt // _getch()
6
GSP 125 Possible Is Everything/snaptutorial.com
GSP 125 Week 3 iLab List of Numbers For more
classes visit www.snaptutorial.com   GSP 125
GSP/125 GSP 125 Week 3 iLab // lab3
listofnumbers // ltinsert your name heregt //
read main.cpp, and follow the instructions at the
bottom of main.cpp include ltiostreamgt using
namespace std int main()
7
GSP 125 Possible Is Everything/snaptutorial.com
GSP 125 Week 4 iLab Simple Game inheritance   For
more classes visit www.snaptutorial.com   GSP 125
GSP/125 GSP 125 Week 4 iLab // // // // // // /
/ INSTRUCTIONS -----------Compile this code. You
should see a rectangular play field of periods,
with 3 Entity objects visible on it. The
happy-face Entity moves with the quotwasdquot
8
GSP 125 Possible Is Everything/snaptutorial.com
GSP 125 Week 5 iLab Shapes For more classes
visit www.snaptutorial.com   GSP 125 GSP/125 GSP
125 Week 5 iLab // INSTRUCTIONS //
------------ // Compile this code. After pressing
any key to clear the instructions, You // should
see three rectangles labeled '', 'b', and 'c'.
You should also see // two triangles, labeled 'd'
and 'e'. Pressing 'gt' and 'lt' will change
which // shape is labeled ''. Pressing 'w', 'a',
's', and 'd' will move the shape // labeled ''.
Pressing 'space' will randomize the selected
shape.
9
GSP 125 Possible Is Everything/snaptutorial.com
GSP 125 Week 7 iLab GSP 124 Week 7 iLab
win32game   For more classes visit www.snaptutoria
l.com   GSP 125 GSP/125 GSP 125 Week 7 iLab
Looking for help with C lab, please see
attached zip, inside main.cpp are directions //
1) Replace Vector2 and Coordinate // a) Create a
new Vec2 class as a replacement for both Vector2
and // Coordinate. Vec2 must be a templated
class, so that it stores and // manipulates X and
Y values of a templated type. It may be helpful
to // start with the Vector2 class, add
"template" to the
10
GSP 125 Possible Is Everything/snaptutorial.com
Write a Comment
User Comments (0)
About PowerShow.com