Game Institute C++ Module 1 - Summary and Code

Week/Lesson 1
Simple basics of C++ - IO stuff using cout and cin, variable types, typedef, sizeof(), arithmatic operations, type conversions, consts, macros, how the Visual C++ compiler converts to machine code. The excercises below are of the most basic kind.
Excercises from the chapter:
Excercise 1: Arithmatic operators
Excercise 2: cin/cout
Excercise 3: Cubed
Excercise 4: Area/Circumference
Excercise 5: Average
Code ZIP file
Week/Lesson 2

Relational and logic operators, conditional statements, loops, break and continue keywords, as well as an introduction to arrays and array iterations. Also talked about code behind the linear search and the selection sort method.

Excercises from the chapter:
Excercise 1: Logical Operator Evaluation (no code)
Excercise 2: Simple Navigator
Excercise 3: Average
Excercise 4: Factorial
Excercise 5: Matrix Addition
Excercise 6: Ascii
Excercise 7: Linear Search (simple search algorithm)
Excercise 8: Selection Sort (sorting algorithm)

Code ZIP file

Week/Lesson 3
Functions, function overloading, default parameters, variable scope, the c++ maths library and random numbers. Some of the excercises may be repeated from previous chapters but the idea is to build it better each time with what you learn.
Excercises from the chapter:
Excercise 1: Factorial
Excercise 2: ToUpper/ToLower
Excercise 3: 3D distance
Excercise 4: Arc Tangent 2
Excercise 5: Calculator
Excercise 6: Slot Machine
Excercise 7: Binary Search (searching algorithm)
Excercise 8: Bubble Sort (sorting algorithm)
Code ZIP file
Week/Lesson 4

References, pointers, pointer arithmetic, arrays as functions parameters, multiple return values, dynamic memory, std::vector, pointers to functions. I have gone over this lesson a number of times.

Excercises from the chapter:
Excercise 4.1: Explanation of terms:
Excercise 4.2: Dice Roll by reference/pointers
Excercise 4.3: Two parts - 'Fill Array' - ask,resize and fill an array using 1) an array 2) a vector.
Excercise 4.4 - Quadratic Equation in a function
Code ZIP file
Week/Lesson 5

OOP Ideas, class definition and implementation files, dot/arrow operators, inclusion guards, data hiding, constructors and destructors, public v private and briefly touched on Copy Constructors and Assignment operators but they will be covered in depth later.

RPG Code zip.

Week/Lesson 6

The lesson dealt with a smaller items that dont require a whole lesson/week. Char strings, string literals, escape chars, c-string functions, std::string functions, the this pointer, friends, the static keyword in functions and as data members, enumerated types, namespaces.
Excercises from the chapter:
Excercise 6.1:ToUpper (using strings)
Excercise 6.2: ToLower (using strings)
Excercise 6.3: Palindrome

Code ZIP here

Week/Lesson 7

The lesson dealt with operator overloading and why to use it. Fairly in depth including building our own 3D class and some work on shallow v deep copies.
Excercises from the chapter:
Excercise 7.1: Fraction Class
Excercise 7.2: Create the FractionArray.cpp file

Code ZIP here


Week/Lesson 8

How to load and save text Files and binary files.
Week/Lesson 9

Inheritance, 'isa' v 'hasa', Base/Derived class casting, public v private inheritance, constructors and destructors with inheritance, multiple inheritance, polymorphism, how virtual functions work and their cost, abstract classes, interfaces.

13 comments:

thomwickes said...

hey your links are down - can you reup them? i was interested in seeing your exercise code

thanks - cool blog

Bharadwaj Akella said...

Hello,
I am currently studying C++ using my friend's Game Institute study material. It would be of great use for me to have the source codes of various assignments.
But the download link seems to have expired. It would be great if you could host the codes on a working link.

Anonymous said...

Why visitors still use to read news papers when in this technological globe all is accessible
on web?
Here is my page ... green coffee bean extract canada

Anonymous said...

I like the valuable info you provide for your articles. I will bookmark your weblog and check
again right here frequently. I'm slightly certain I will be told lots of new stuff right right here! Best of luck for the next!
My blog post ; banned commercials

Anonymous said...

Hello There. I found your weblog the use of msn. That is a
very smartly written article. I will make sure to bookmark it and come
back to read extra of your useful information. Thanks
for the post. I will certainly comeback.
Feel free to surf my web site ... digesting enzymes

Anonymous said...

Aw, this was an extremely nice post. Taking a few minutes and actual
effort to generate a superb article… but what can I say… I procrastinate a
lot and never manage to get nearly anything done.
Here is my weblog :: Webmaster Daily Deals

Anonymous said...

I think this is one of the most vital info for me. And i am glad reading
your article. But wanna remark on some general things, The web site style is great, the articles is really nice : D.
Good job, cheers

My web-site Green coffee bean weight loss

Anonymous said...

I could not refrain from commenting. Perfectly written!


My blog: Planning To Download Minecraft For Free? Read Our new Strategy guide

Anonymous said...

whoah this weblog is wonderful i love studying your posts.
Stay up the great work! You understand, a lot of people are searching round for this information, you can help them greatly.


Here is my blog post; Jackpot 6000 free

Anonymous said...

Thanks , I have recently been searching for info about this topic
for ages and yours is the greatest I have came upon till now.

However, what in regards to the conclusion? Are you sure concerning the source?


Feel free to visit my page :: nummerupplysningen :
: http://www.youtube.com/
::

Anonymous said...

I take pleasure in, cause I discovered exactly what I was having a look for.
You have ended my four day long hunt! God Bless you man.
Have a nice day. Bye

My web blog ... jackpot 2000 slot machine :
: xrea.com ::

Anonymous said...

Hey I knoω thiѕ iѕ off topіc but I ωas wondеring іf you knеw of anу widgets
I could add to mу blog that аutоmatically tweet my
newеѕt tωitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

my web site ... nummerupplysningen.se

Anonymous said...

Fantastic web site. Plenty of useful info here. I аm sending it
to some ρalѕ ans also sharing in deliciοus.
And сertаinly, thаnκ you tο yοur swеаt!


Feel free to visit my web pаge; rhіnoplaѕtу
surgery ()