Posts Tagged "Classes"

Slot Machine Example in C++

I was bored and that can be a dangerous thing. Like doodling on the phone book while you are talking on the phone, I doodle code while answering questions on DIC. Yeah, it means I have no life and yes it means I was born a coder. During this little doodle I decided to make a slot machine. But not your standard slot machine per say, but one designed a ...

Bit.ly Class for shortening URLs in VB.NET and C#

So I was tinkering around with some code and thought "Hey, wouldn't it be great to create a class that could be used to tie into bit.ly's API for shortening URLs?" After having this thought I also thought "I am hungry" so went to get some lunch. Then when I came back, I got to work putting together a quick class that a programmer could use in their projects for ...

Structs vs Classes in C#

Many times on the forum people have asked about the differences between structs and their big brother "classes". How do the two differ and where are they the same? How do I know when I need one or the other and why don't I just use classes all the time? We will attempt to explore the differences from a basic introductory standpoint so that the beginner can understand. We will ...