School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 306,766 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,593 people online right now. Registration is fast and FREE... Join Now!



's Contributions
Below are the tutorials, code snippets, and resources has submitted to dream.in.code. For more information on Kudos and contributing to dream.in.code visit: http://home.dreamincode.net/?p=about#kudos.
Tutorials
STL algorithm::count() in C++ Tutorials (Last Comment: gabehabe, Views: 2,238)
Vector Iterators in C++ Tutorials (Last Comment: gabehabe, Views: 5,473)
Intro to SDL in C++ Tutorials (Last Comment: gabehabe, Views: 2,048)
STL Maps in C++ Tutorials (Last Comment: gabehabe, Views: 2,058)
STL queues in C++ Tutorials (Last Comment: gabehabe, Views: 2,789)
STL: Stack in C++ Tutorials (Last Comment: gabehabe, Views: 2,990)
C++ Namespaces in C++ Tutorials (Last Comment: gabehabe, Views: 3,625)
Designing a custom title bar in C# Tutorials (Last Comment: gabehabe, Views: 7,375)
Code Snippets
Submitted: June 20, 2008        Views: 1502
This one's encased in a class, and it's much easier to use than my last one in functions.
Submitted: October 5, 2008        Views: 3655
Similar appearance to the FontDialog of Windows.
Acronym() in C++ by gabehabe
Submitted: July 13, 2008        Views: 595
Strip a string down to just the first letter of each word and return it as an acronym.
Submitted: September 9, 2008        Views: 3069
Similar to my AppendTextToIndex function, this function will keep any formatting in the rich text box. (It also calls a Win32 function)
Submitted: September 8, 2008        Views: 3103
Appends text to a given index on a rich text box (as opposed to just appending it to the end)
Brainfuck: Reverse a string in Other Languages by gabehabe
Submitted: May 28, 2008        Views: 701
Reverse a string in Brainfuck
Submitted: May 19, 2008        Views: 4117
Uses bubble sort to sort a vector
Submitted: October 6, 2008        Views: 1913
Encrypts a string using a Caesar Cipher
Submitted: October 5, 2008        Views: 1371
Captures a set clip of the screen to a Bitmap, given the x,y coordinates to clip, and the width/height to clip.
Submitted: October 5, 2008        Views: 4038
Captures the screen as a Bitmap object
Submitted: September 11, 2009        Views: 281
Converts a char array[] to an integer (minimal error checks, ignores letters and checks if array[0] is '-' to make it negative)
Submitted: July 15, 2008        Views: 3475
We've all done it at some point ;)
Submitted: November 10, 2008        Views: 3060
Accepts a string to check if a path is a file or a directory.
Submitted: July 3, 2008        Views: 5012
There are two versions, one which is case sensitive, and another which isn't case sensitive.
Submitted: August 18, 2008        Views: 830
Windows specific! This function will set an entire row of console output to ' ' (space) and clear it, then return to the original cursor position.
Submitted: November 30, 2008        Views: 725
Returns the number of iterations before reaching 1, using Collatz Conjecture: http://en.wikipedia.org/wiki/Collatz_conjecture
Submitted: October 9, 2008        Views: 1728
It can be a little tedious to compile the wxWidgets source code, so this is a simple batch script to do it for you.
Submitted: September 7, 2008        Views: 2938
Consider a string "123.456" which could be converted into 123.456 as a float (one hundred and twenty three point four five six)
Submitted: September 7, 2008        Views: 2623
Converts an entire string into an integer. Consider "1234" as a string, it would then become 1234 (one thousand, two hundred and thirty four) as an integer value.
Submitted: October 27, 2008        Views: 3259
Uses regular expressions to convert BBCode tags into HTML tags.
Submitted: August 8, 2008        Views: 5025
A function which is not OS dependent, which copies one file to another by opening the file, and writing it to another. Works with all file extensions.
Submitted: June 23, 2008        Views: 3810
Date Add in PHP by gabehabe
Submitted: February 24, 2009        Views: 753
Adds a specified amount to a date, either day, month or year. (Specific to dd/mm/yyyy format)
Submitted: September 8, 2008        Views: 2211
Deletes text from a rich text box control.
Submitted: October 5, 2008        Views: 2021
Shows how to write a method like pow() without the use of <math.h>
FoxPro: Field Names to Cursor in Other Languages by gabehabe
Submitted: August 7, 2009        Views: 169
Bit of a hack/slash method, but this program will get the fieldnames from the currently selected table/cursor and append them into a cursor called fieldnames.
Fullscreen in C# by gabehabe
Submitted: September 25, 2008        Views: 2751
Puts a System.Windows.Forms.Form in fullscreen mode, including covering the taskbar
Submitted: September 30, 2008        Views: 850
A function to check if the console input was of the correct type. If it wasn't it will prompt the user to re-enter.
Submitted: February 25, 2009        Views: 1557
Reads the <title> tag of a web page.
Submitted: September 8, 2008        Views: 3641
Gets the XY coordinates of the caret position (row,column) as a System.Drawing.Point
Submitted: October 26, 2008        Views: 755
Calculates the harmonic sum, where the result = 1 + 1/2 + 1/3 + ... + 1/n
Submitted: May 19, 2008        Views: 2235
Implements Pythagoras' theorem to calculate the missing length of a side of a triangle
Submitted: August 7, 2008        Views: 5358
Submitted: October 6, 2008        Views: 4508
A recursive method to populate a JTree with nodes for directories, files, and subdirectories
Submitted: October 8, 2008        Views: 8974
Populates a TreeView object recursively with the name of directories, subdirectories and files.
Submitted: July 11, 2008        Views: 1747
A function to load and optimise an image.
Submitted: October 27, 2008        Views: 3743
Does exactly what it says on the tin.
Submitted: October 5, 2008        Views: 379
Checks if an integer is palindromic (reads the same backwards as it does forwards)
Submitted: September 30, 2008        Views: 5604
Submitted: July 15, 2008        Views: 1437
uses various methods, including two recursive concepts.
Submitted: July 16, 2008        Views: 1991
A function to calculate the lengths of all sides of a right angled triangle, given only the perimeter.
Submitted: July 16, 2008        Views: 324
Finds the lengths of sides A and B given only the value of side C
Submitted: October 8, 2008        Views: 3251
Generates a random string, made up of a set of options (characters, numbers, symbols)
Submitted: June 23, 2009        Views: 211
Gives links to your five most recent blog entries, complete with previews. Can be modified to be a generic RSS reader.
Submitted: October 6, 2008        Views: 1901
A recursive method to check if a string is palindromic~ very short!
Submitted: October 7, 2008        Views: 917
It's ugly, but it works. And it's only ONE LINE LONG! This code demonstrates how difficult ternary can be to read. :)
Submitted: November 10, 2008        Views: 5219
A common problem~ But rarely found.
Submitted: November 11, 2008        Views: 940
Another way to reverse a string, using recursion.
Submitted: May 19, 2008        Views: 1706
Well clrscr() only seems available under the Borland compiler, so let's define our own!
Submitted: May 19, 2008        Views: 2437
gotoxy() is only available under the Borland compiler, so let's define our own!
Submitted: February 10, 2009        Views: 455
Checks a string using regex to determine if it is a prefix/current style British car registration plate, and returns the type as a string.
Submitted: July 15, 2008        Views: 4747
It's all in the title!
Submitted: July 14, 2008        Views: 2871
Aligns a string to the right hand side of the console.
Submitted: September 30, 2008        Views: 3192
Submitted: September 24, 2008        Views: 4314
Submitted: October 5, 2008        Views: 1769
Saves a List of Bitmaps as separate frames (pages) to a tiff file
Submitted: May 14, 2008        Views: 4818
Scrolls a line of text vertically on the console By Danny Battison
Submitted: May 11, 2009        Views: 157
A simple textbox class, with an option for password masking
Submitted: July 13, 2008        Views: 1418
This is a useful class for use when loading, applying and moving an image on the screen.
Submitted: June 27, 2008        Views: 2474
Prints **** when inputting a password on the console.
Submitted: July 12, 2008        Views: 1233
A C version of my C++ class "password"
Submitted: July 9, 2008        Views: 1629
Functions to convert an unformatted string to proper case or sentence case.
Submitted: July 13, 2008        Views: 648
Makes the console out put nice and pretty! WINDOWS SPECIFIC!
Submitted: December 6, 2008        Views: 339
Shorter than born2c0de's! :P (Plus it returns the string for use as a variable!)
Submitted: August 6, 2008        Views: 1780
A few functions which perform checks on which category a char could fall under: letter, upper case, lower case, number or symbol
Submitted: June 24, 2009        Views: 357
Takes each digit from an integer and places it into an array, complete with leading zeros
Submitted: August 2, 2008        Views: 1022
It's all in the title! =)
Submitted: September 11, 2009        Views: 363
1 line, ternary ftw. :-)
Submitted: November 11, 2008        Views: 597
Shows how to reverse a string in a ternary method. Ternary is lots of fun. :)
Deleted: Test on new server in C++ by gabehabe
Submitted: December 20, 2008        Views: 157
Timer in C++ by gabehabe
Submitted: June 12, 2008        Views: 760
A timer which has been encapsulated in functions.
Submitted: July 12, 2008        Views: 5439
Similar to my C++ timer, this shows how to use a timer in C programming.
Submitted: October 13, 2008        Views: 769
Since wxWidgets is cross platform, it might be handy to be able to get the current operating system's start command, to use system() ~ that's exactly what this function does: it checks the default operating system, and returns a string of the operating system's command to start a process.
Submitted: November 9, 2008        Views: 1660
Scales a wxBitmap object evenly, keeping the width and height directly in proportion.