Exclusive OR (xor) is probably one of the most used operations in today’s encryption schemes. If you’re into creating some kind of encryption in your programs, you would need to utilize XOR operations, as XOR is a pretty versatile “tool” that you should use. If you care to know, XOR is actually an exclusive OR operation. While a simple OR is something like ‘x + y’, exclusive OR is the operation xy’ + x’y. In case you’re not familiar with the mathematic language, + stands for the operation OR, xy is sort for x AND y, while x’ is the NOT equivalent of x.
Read the rest of this entry »
No Comments »
As you can understand, the STL vectors is a pretty large c++ subject on its own. Of course, i won’t be covering eveything about them in this post. My intention is to give you a basic insight and in later posts write more about it (according to what you may want to ask for, in example).
Read the rest of this entry »
1 Comment »
Namespaces is a very useful C++ feature. The important thing to understand is that namespaces are nothing more than a way to name certain variables, functions, classes and more data structures inside a certain scope name. What does this mean ? Think of a simple example. You happen to use two user defined libraries that you include in your main program. While this is just a matter of 2 includes, you get a compilation error of a multiple declaration. What is happening ? Well, if each library happens to contain a class named as “String”, you would be getting a compilation error for declaring the same class twice. This is exactly the problem that namespaces solve.
Read the rest of this entry »
No Comments »
This post is going to be a bit longer than my usual posts. Some years ago, i wrote a small tic tac toe game in c++ (using visual studio as my IDE). I was mainly focusing on creating an artificial intelligent opponent for that game and wanted to actually create a minimax type algorithm. Therefore, i decided to code this code, as a means to create a rival whom i wouldn’t be able to beat (or at least, it would be hard to).
Read the rest of this entry »
19 Comments »
I personally believe that the most important thing in programming is practice. What will make you a better programmer is writing more and more programs. Therefore, i believe that writing some simple programs is pretty important for novice programmers. This post will be about writing a converter from Celsius to Fahrenheit and Fahrenheit to Celsius as well.
Read the rest of this entry »
No Comments »
As you can understand, the STL vectors is a pretty large c++ subject on its own. Of course, i won’t be covering eveything about them in this post. My intention is to give you a basic insight and in later posts write more about it (according to what you may want to ask for, in example).
Read the rest of this entry »
No Comments »