This is a small program in Intel Assembly Language that finds the Greatest Common Divisor for any two integers and is comparable to the following C++ code: The following is the implementation in Intel Assembly Language:
4. Creating a Stack
Stack is an abstract data type that allows you to input and output data in a way that the first data which was placed in the stack will be the last one to get out. We use physical examples of stack in our daily lives such as the stack of …
3. Classes in depth
When working with the object oriented paradigms, classes are the most commonly used tools. So here we are to make you understand the simple but the most important concept. This post mainly discusses the concept of encapsulation, where we shall first see what are classes and objects and then relate …
2. Some Basic Concepts
There are three main concepts one should know if working with the object oriented paradigm, namely encapsulation, inheritance and polymorphism. Encapsulation Encapsulation is one of the very basic concepts of object oriented programming, the process of binding data and functions that manipulate data together is known as encapsulation. The functions …
1. Introduction to Object Oriented Programming
Introduction to object oriented programming This tutorial series is aimed to teach you the concepts of object oriented programming (OOP). We will use C++ as our tool to learn this programming paradigm. There are many modern programming languages now support OOP at least as an option. It is assumed that …
11. More On Arrays
In the previous post we introduced arrays to you; and learned that arrays make our tasks a lot easier when we are dealing with a number of records. Arrays are not just that, there is a lot more on this topic as we shall see here; how to deal with …
10. Introduction to Arrays.
We learned about variables in our previous posts, we saw that they are essential part of any programming language, before we move further I would like you to think over, what if we want to store records of hundred entities, for e.g. we want to store the names of hundred …
9. Introduction to Pointers
We learned about variables that they are used as identifiers to memory locations so that we need not to remember the difficult memory addresses, but is there a way to store those memory addresses in case we need them? Yes! Pointers are a powerful feature of C language which gives …
8. Code Re usability, Introduction to functions
Code reusability has always been an interesting topic, reusing code to avoid repetition is a very good technique used by programmers to increase the readability of code. Re usability reduces, the implementation time as well as the number of bugs in your code; causing the testing phase of your application …
Recent Comments