How to get the iPhone to vibrate using one of the functions available in the AudioToolbox.h source file.
Calculate grade average with weights
This C++ program will calculate the average of 4 grades by using weight calculation. It will then display the average and give the user a chance to review the grades.
Basic Bitwise Operations in Pascal
Four simple bitwise operations as Pascal functions.
Palindrome Detector using C++
The palindrome detector application will first clean and analyze a string and then inform you whether or not it is a palindrome. This is probably one of the strangest applications I built because the requirements forced me to not make use of any header files except iostream. Thus, instead of using a string object to manipulate the palindrome, […]
Overloading Operators: Creating a Rational Class
This tutorial will teach you how to overload most of the operators available in C++, including arithmetic and comparison, in order to create a class that is able to calculate rational numbers. Probably one of the most interesting features of object oriented programming is the possibility to overload operators. This allows you to create your […]
Show Link Icons Depending On Protocol
Place an icon next to each link depending on the protocol used in the href attribute of the anchor tag. This way you can mark external links that are secure (through https) for all browsers supporting CSS 2.1 or later.
Validate email addresses using VB.NET
Using RegEx this VB.NET code validates an email address. It’s checking for a string separated by the at (@) character, and again separated by a dot.
Get a list of the files in the clipboard
This few lines of code are retrieving the list of files that are copied to the clipboard, if any.
C’s predefined macros
A list of C’s predefined macros (__FILE__, __LINE__, __STDC__…) with description and an example of how to use them. __FILE__ – a string that holds the path/name of the compiled file;__LINE__ – an integer that holds the number of the current line number;__DATE__ – a string that holds the current system date;__TIME__ – a string that holds the current […]
Dissecting ‘Hello World’ in C
Analyzes the C code for a simple ‘Hello World’ application to give you some familiarity with the language and the way it works. C is not such a current language anymore, it was replaced by C++ long ago and recently C++ is being replaced by the .NET Framework. If I would stop the paragraph right […]