dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > C++ > Algorithms

Algorithms

12 of 12     Previous     Next
Generation of Equivalent Binary Code of Decimal Digits
by Arup Goswami
Language: C++||Expertise: Beginner
Generating Gray Codes in C
by Arup Goswami
Language: C++||Expertise: Beginner
Palindrome Generation
by Arup Goswami
Palindrome Generation
Adding Workdays to a Date
by Chad Juliano
To calculate a future or past date taking only working days into account, use this handy function.
Algorithm to Switch Between RGB and HSB Color Values
by Duc Nguyen
Changing between RGB and HSB color values is easy using this algorithm.
Finding Modulus of a Very Large Number with a Normal Number
by Sameer Palande
Divide the number into smaller numbers, then find the remainders of these smaller numbers. Add up the remainders and repeat the process. As long as the remainders are retained, the final answer wont change.
Converting Numbers to Column Names in Excel 2007
by John P.
While converting to Excel 2007, I had to update the column number to string code in my program to handle columns of 703 and above (AAA). I found Yassine Moe's code and "simplified" it. This tip shows the results.
Reverse a Numeric Value Without Using String Utilities in Java
by Elayaraja David
Find out how to use the NumberReverse to reverse a given number without using string utilities.
Convert Numbers to Excel Column Names
by Yassine Moe
This algorithm converts column numbers (1-x) to Excel column names.
The Remove_if() Algorithm
by Alan Reynolds
It's easy to fall into the trap of thinking that the remove_if() algorithm moves the items that you wish to be deleted to the end of the vector prior to erasure. A number of Web pages also give this impression. Don't believe them!
Retrieving Only Unique Elements from Two Sets
by Mykola Rozhok
This algorithm helps you to retrieve all the elements contained in the first set (set1), but not in the second (set2).
Incrementing Iterators
by Wael Salman
You can use iterators for a STL set object to loop through the set elements 1 by 1. But did you know you can also increment the iterator by more than 1?
12 of 12     Previous     Next
Thanks for your registration, follow us on our social networks to keep up-to-date