|
 |
|
|
Submitted: February 19, 2009
Views: 1335
A pair of numbers are amicable if the sum of the factors of numOne are equal to numTwo and vice verse.
|
|
|
 |
|
|
Submitted: September 15, 2008
Views: 3917
This is an example of how to implement a custom class that inherits from std::streambuf. The example in this case performs very simple XOR encryption. It is not meant to be secure (it only uses an 8-bit key), but it is here for example purposes.
|
|
|
 |
|
|
Submitted: April 12, 2009
Views: 1250
This is graphical Analog Clock made for TC 3.0.
|
|
|
 |
|
|
Submitted: March 2, 2005
Views: 12337
This Class Implements Fractions using various Functions.
|
|
|
 |
|
|
Submitted: July 8, 2008
Views: 1438
This snippet simply demonstrates an implementation of "Comb Sort".
|
|
|
 |
|
|
Submitted: September 11, 2009
Views: 985
converts a string to lowercase, uppercase, toggles the strings case or reverse it
|
|
|
 |
|
|
Submitted: March 19, 2009
Views: 506
This program copies a source file into a destination file, checking for the existence of the destination file, and prompting for overwrite if it does.
|
|
|
 |
|
|
Submitted: November 6, 2008
Views: 2299
This snippet demonstrates the use of Microsoft's Data Protection API to encrypt data such that only the logged-in user can decrypt it. It also demonstrates saving and retrieving binary data into a registry entry.
|
|
|
 |
|
|
Submitted: March 7, 2009
Views: 2047
Uses simple loop to find the number of digits in an integer.
|
|
|
 |
|
|
Submitted: January 29, 2008
Views: 1768
If 1, 2, 3, 21, 22, 23 etc. are sent than "st", "nd", or "rd" are returned. Otherwise "th" is returned. Works on negative and positive numbers.
|
|
|
 |
|
|
Submitted: July 10, 2008
Views: 668
Convert a Base 10 number to a Base 26 equivalent
|
|
|
 |
|
|
Submitted: January 5, 2007
Views: 4087
Inserts any file into a bitmap image. The program tells you how big a file you can put into the bitmap. It's really cool! Try it out.
|
|
|
 |
|
|
Submitted: August 7, 2008
Views: 5355
|
|
|
 |
|
|
Submitted: February 14, 2008
Views: 786
Loads compiled resource data from an EXE or DLL
|
|
|
 |
|
|
Submitted: January 29, 2006
Views: 4056
There's a certain measure of bending over backward to get around the >> input operator's default behavior of being delimited by spaces. The easiest way I've found is to imbue the stream with a custom facet that makes sure only '\n' counts as whitespace.
|
|
|
 |
|
|
Submitted: March 20, 2009
Views: 1911
This snippet will parse a character array with by using the strtok function
|
|
|
 |
|
|
Submitted: June 13, 2009
Views: 589
Create a timer in native C++ which pauses input for a designated time.
|
|
|
 |
|
|
Submitted: March 29, 2009
Views: 1737
you can open a file and read data and write data at specific offset
|
|
|
 |
|
|
Submitted: May 26, 2009
Views: 862
Lists the contents of a folder recursively
|
|
|
 |
|
|
Submitted: May 19, 2008
Views: 1705
Well clrscr() only seems available under the Borland compiler, so let's define our own!
|
|
|
 |
|
|
Submitted: October 20, 2009
Views: 89
Rounds positive and negitive numbers correctly
|
|
|
 |
|
|
Submitted: June 4, 2009
Views: 346
Reverses the word order of a sentence input by the user.
|
|
|
 |
|
|
Submitted: July 30, 2007
Views: 882
|
|
|
 |
|
|
Submitted: December 12, 2006
Views: 2573
Following program makes a stack of const char * using vector as the underlying container
|
|
|
 |
|
|
Submitted: December 2, 2006
Views: 4891
Output windows remains open until you press enter.
|
|