Jump to content

View more

Retro Grade

4: Adsense

[Case] Breakout!

Wow, it's been a very long time since my last case study! Well now, I'm here to give you a great one: Breakout!

Let's start with the mechanics, as usual:
You control a single paddle that can move left and right.
There is a 2D array of blocks.
The Paddle is at the bottom of the screen, the blocks are at the top.
There...

[Structure][C++11] The Auto Variable

How many C++ programmers reading this know what an auto variable is. Come on, raise your hand. I count 1... 2... 3... Almost all of you!

However for those of you that don't know the basics of the new standard yet, auto is a new variable that works like this:


Code:


// Hooded.cpp : Defines the entry point for the console...