Subscribe to Invariance_Under_Translation        RSS Feed
- - - - -

A new project: Sci-Fi Novel Cataloging program

Icon 1 Comments
Good Morning DIC

I recently returned from my vacation to home. While home, I spent some time thinking about my next project. I wanted to create something practical, that I could evolve into something useful. I noticed that my father has his science fiction collection scattered across many shelves, with no rational order made obvious. I also enjoy...
- - - - -

Introduction to Abstraction

Icon Leave Comment
This entry is designed to give a basic overview of one of the many uses of Abstraction. By designing your program to take advantage of abstraction, you are decreasing the amount of overhead by "hiding" implementation. I will use a purely logical example to illustrate this point.

You have an office building with many different...
- - - - -

Inheritence Pt. 2

Icon Leave Comment
In my last post I began introducing Inheritence. You will notice that in my last entry that all derived classes inherited as follows;

class Derived : public Base


Notice the
public
...
- - - - -

Inheritence Pt. 1

Icon 1 Comments
Inheritence allows our data structures to inherit certain member variables from a Base/Parent structure. In this entry I will only use public accessors, we will keep the topic of protected and private accessors for a later entry. When you build and run this program, you will notice the order in which output occurs. When we initialize our...
- - - - -

Composition

Icon Leave Comment
When creating classes, we aim to have each class perform one function. For more complex problems, one solution is to use composition. I use the ol' computer example. A computer performs many operations. It directs the flow of data, saves and retrieves data, provides a UI for input/output. Instead of writing one giant class for handling all of...
- - - - -

Queues

Icon Leave Comment
A couple of entries ago I began to talk about Stacks. A slightly more difficult topic involves Queues. Where in a stack, data is incremented from the back and removed from the back, a queue adds data to the back and removes it from the front. Below is an example of a queue, documented throughout. If there are any questions feel free to PM or...
- - - - -

Linked List

Icon Leave Comment
I have recently been experimenting with Linked Lists. The code being posted below is very simple, but demonstrates how one might create a Linked List and utilize a very basic implementation. Enjoy and happy coding.

...
- - - - -

Copy Constructors and playing with objects

Icon Leave Comment
Now that a few entries have been posted in regards to OOP we can move on to the topic of copy constuctors. Say we would like to create a bit-wise copy of an object, while performing operations on the copy and keeping the original object intact? This is exactly what our copy constructor will do. Below is a snippet of code that I hope you will find...
- - - - -

Decimal to Binary Conversion utilizing OOP

Icon Leave Comment
Here is the same program as my last entry, only this time utilizing OOP. It is decently commented throughout, if you have any questions or critiques feel free to post or PM. Enjoy and happy coding!

...
- - - - -

Decimal to Binary conversion w/o OOP

Icon Leave Comment
I am in the process of re-writing this code to utilize OOP, but in the mean time here it is utilizing Procedural Programming. I wrote this program to simplify a problem I often faced when studying for my Network+ exam. Converting a decimal IP address into it's Base 2 form. The purpose of this was to be able to subnet. Of course, I could have...

  • (2 Pages)
  • +
  • 1
  • 2

October 2014

S M T W T F S
   1234
567891011
12131415161718
19202122 23 2425
262728293031 

Tags

Recent Entries

Recent Comments

Search My Blog

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)