C++ Tips

Taggidy tag tag

C++ Tip - Packing Data

Tim Jones    |     July 15th, 2010    |     8 comments
Here's a quick tip that is useful if you are sending data over a network. If you ever messed with any sockets in programming then you know you can onl
C++ Tips

C++ Tip - Literals

Tim Jones    |     June 8th, 2010    |     2 comments
A common area that people don't even know exist in C++, is called literals or literal constants. But even though you may not have heard of the term be
C++ Tips

C++ Tip - Being safe with Pointers

Tim Jones    |     May 5th, 2010    |     5 comments
Arguably no other area of C++ confuses more people and causes more frustration than pointers. Here's a few quick tips to keep safe while using them.
C++ Tips

C++ Tip - Multi-line Comments and Strings

Tim Jones    |     April 9th, 2010    |     2 comments
This tip actually comes out of a "bug" that Blommis found a while back. If you want to create a string (or you can do this for comments too) that sits
C++ Tips

C++ Tip - Shorthand Struct

Tim Jones    |     March 22nd, 2010    |     1 comment
Here's a quick helpful tip that people often overlook. You can quickly initialize the values of a struct using shorthand notation: struct SEntity
C++ Tips

C++ Tip - Console Closes

Tim Jones    |     March 19th, 2010    |     3 comments
If you are having trouble with your C++ programs opening and closing really fast, here's a quick fix. Add the following code to the end of your main f
C++ Tips

First Foray into SDL/OpenGL

OpenGL handles the drawing of models in a window but it does not provide the window, or handle events; that is why SDL is required. The prime purpose of this tutorial is to set up the SDL window and events mechanism. It also sets up the OpenGL environment that uses the window, the game loop, and a rotating cube.

Huh? My Pong clone uses 100% CPU and is still slow?

Your program is being a CPU hog! In some cases, this situation can actually make your program run slowly! Your code needs to give some time back to the OS (i.e. delay or sleep).

Setting up MonoDevelop to run Tao

A new series from Stephen Jones demonstrating how to use C#, Mono, and Tao to develop SDL / OpenGL games.