The binary tree is a fundamental data structure used in computer science. It is a useful data structure for rapidly storing sorted data and rapidly retrieving stored data.
The Binary Adding Machine C and C++ / Getting Started
Ever wondered how computers work? In this tutorial, I attempt to explain this from the ground up. First, we'll look at how a machine can add numbers.
MiniMax Game Trees C and C++ / Games Development
The Minimax Game Tree is used for programming computers to play games in which there are two players taking turns to play moves. In the most basic sense, the minimax tree is just a tree of all possible moves.
Understanding C++ data types II C and C++ / Getting Started
Part II of the small book that teaches you the C++ data types. Even if you have an IQ under 25 you will can understand and use the data types. In this part you will see an important aspect of data types... signed and unsigned.
Making a game: The Design C and C++ / Games Development
we created the game idea that is to be the focus of this article series.In this part, we will go over the idea and try to weed out anything that could trip us up when we get to the development process.
Lesson 18: Pointers and Stacks in C C and C++ / Pointers and References
Today's lesson goes more into details about pointers and their usage as function's arguments. Additional tutorial about stacks in C and C++ is provided. Be sure to read this lesson carefully in order to understand it, since pointers are most important part of C programming language.
Lesson 19: C Programming Examples C and C++ / Getting Started
I've based this lesson on a single program example. This part of C programming tutorial has dual purpose: firstly to teach you how to apply previously learned C/C++ knowledge, second: to show you how pointers, arrays, functions and matrixes can be combined together in one single program.
Introduction to Functions C and C++ / Functions and Classes
A function is an assignment or a task that must be performed to complement the other part of a program. There are two kinds of functions: those supplied to you and those you will be writing. The functions that are supplied to you are usually in three categories: those built-in the operating system, those written in C++ and those supplied with your programming environment. The use of these functions is the same regardless of the means you get them; you should know what a function looks like, how to create one, what functions are already available, where they are located, and what a particular function does, how and when to use it.
Exceptions and Classes C and C++ / Functions and Classes
Exceptions are an integral and unavoidable part of the operating system and programming. One way you can handle them is to create classes whose behaviors are prepared to deal with abnormal behavior. There are two main ways you can involve classes with exception handling routines: classes that are involved in exceptions of their own operations and classes that are specially written to handle exceptions for other classes.
Pointers and References in C++ C and C++ / Pointers and References
The ability to manipulate memory and memory locations directly is part of what makes C and C++ so powerful, so dangerous, and so difficult for beginners. C only has "pointers", but C++ uses pointers and "references" that have a nicer syntax and attempt to be safer. This article will attempt to demystify these concepts in the minds of beginning C/C++ programmers.