Programming Tutorials
C++
Set Console Text Color
Submitted by Baran Ornarli on Sun, 12/21/2008 - 18:45.Setting console text color is a great way to add spice to your console games. Using a combination of ASCII art and Console coloring you can even make your own RPG game. It's very simple to do, all you need is windows.h.
C++ Prime Number
Submitted by Baran Ornarli on Tue, 12/09/2008 - 04:24.A Prime number is a mathematical number that can be divisible by itself and by 1. Prime numbers though can get difficult to code efficiently, because of the process it takes to calculate them. The following is a very efficient algorithm for calculating C++ prime numbers.
C++ Buffer Overflow Exploit
Submitted by Baran Ornarli on Sat, 12/06/2008 - 02:29.When you have a certain amount of bytes allocated for a buffer and someone enters more bytes than you allocated, this is called a buffer overflow or buffer overrun. It is a very serious security threat and many programmers make this mistake, even experienced programmers. You must secure your code, otherwise someone can inject code directly into your system using your program. These C++ security exploits can be used in any language, even on websites.
C++ XOR Encryption Cipher for Secret Messages
Submitted by Baran Ornarli on Thu, 11/27/2008 - 09:10.Ever wanted to send secret messages to your friends? Using C++ and the XOR ^ operator and the AND & operator you can make secure a encryption that only people with your source code can use.
C++ Log File Class (Forget Debuggers!)
Submitted by Baran Ornarli on Tue, 11/25/2008 - 07:23.C++ can become very difficult to use especially with large projects where you can't see all the variables. Here's a very simple C++ logging class that can take logs for your software without any effort. This will make you a better programmer as you won't have to rely on debuggers like in Microsoft's Visual Studio.
C++ Program Without Main Function
Submitted by Baran Ornarli on Sun, 11/16/2008 - 10:17.Ever wanted to name your C++ main() function differently? We use a little C++ trick to rename our main() function to InfernoDevelopment().
C++ Beginner Programming Video Tutorial
Submitted by Baran Ornarli on Thu, 11/13/2008 - 06:39.In this video, we make a simple guessing game for beginners using C++ and we also explain how to set up your programming environment. This is a very simple tutorial for beginners.
C++ Pthreads API
Submitted by Baran Ornarli on Sun, 11/09/2008 - 23:50.Ever created a multi-threaded application? Using POSIX threads, called Pthreads you can create multi-threaded applications in almost any operating system. Pthreads give you the ability to control threads using C++. In this example, we will create a multi-threaded Matrix Multiplication Application.
Beginner C++ Cout Cin Integer
Submitted by Dan Killam on Fri, 11/07/2008 - 06:46.The objective of this basic C++ tutorial is to provide beginners with a simple understanding of the cout and cin functions of C++, while simultaneously providing a guide to one of their first programs. This C++ tutorial will also show you how to set up your environment and your example programs.
Singleton C++
Submitted by Baran Ornarli on Mon, 11/03/2008 - 20:28.The Singleton C++ Design Pattern is a C++ design that creates one single instance of a class that can be used throughout multiple files and large projects.
Think of C++ Singleton like a global class that can be accessed at any moment and will be created only once, if it hasn't already been initialized.

