Desktop Programming

Desktop programming related articles not related to .NET (Java, Python, Ruby etc)

Dijkstra’s Algorithm for C++

Who doesn't like graph theory? Come on... it is the foundation of all living beings! Ok maybe not but it is still a bit interesting from a theoretical standpoint. Graph theory is the study of graphs and their relationships between points on that graph and their overall collection. It is often made up of vertexes (aka nodes) and the connections between them known as edges. Linked together they form a ...

Speaking Mouse to Hunt Down a Popup Menu

The mouse is one of the most abused input devices on today's computers. Second to maybe the keyboard, it is essential for gathering input from the user. We tell it what to do but what if we stopped a second and had our application listen to it? I mean, REALLY listen to it and not just that listening you do when your favorite show is on TV and your girl ...

Lets Blow Bubbles in C++, the Bubble Sorting way!

Now dip the wand into the soap and take it back out, blow gently and voila! Your integer array is sorted! Wow, only if it was that easy huh? Well it can be with a simple straight forward demonstration of bubblesorting. In this entry I will attempt to quickly show you a simple bubblesort you can do at home and in your own projects. It may even help you pass ...

Amortization Definitive (C++, C#, Java, etc)

Amortization... it is the process of accounting for, and usually decreasing, an amount of money over a period of time. You can amortize a mortgage or various types of loans, and you can amortize assets based on their value and what their value will be in so many periods of time. Many newbies on our boards have asked about this very project as part of the computer science courses and ...

Parts 1-3 of Product / Inventory Project

One of the many questions we are asked on a regular basis is help with the Product, DVD, Inventory inheritance style of problem. Where the student is asked to create a Product class as part 1, then create an Inventory class in part2 to manage the products, and lastly asked to inherit from the Product class to make a specialized subclass in part 3. While this blog entry goes into ...

A Slice of PI Using the Monte Carlo method In Java

Everyone loves PI don't they? Cherry, Apple, Blackberry and even Pumpkin is which is one of my all time favorites! Ok, I am not talking about that kind of pie or that geeky guy who called himself PI on Beauty and the Geek (love that show... why? Because I am a geek and wishing I could hook up with hot super model chicks who depend on my intelligence and willing ...