Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Search the Tips
Tip Bank > C++ > Algorithms

Algorithms - Page 3

41-60 of 383     Previous     Next
Another Way to Delete Files or Filetypes
by Jan Buskens
This routine uses all the good stuff that FileSystemObject offers. ...
Determine Current User
by Pratibha Gupta
In Windows, the computer can be set up so that many different users can log into the computer. The current user
Use Mid$ to Compose a Big String
by Guoran Xie
The following code is a fast way to compose a big string by using Mid$ function instead of using the concatenating operator. The strings concatenated in a loop are often variable. So use S1 to ...
Prevent Do Loops From Becoming Permanent
by David Sharkey
This tip is extremely useful in the IDE for debugging. ...
An Efficient Method of Creating Lists For Month Names
by Guoran Xie
The following code is an efficient, flexible, system-setting-independent procedure. MonthNames is either a listbox or a combobox. If StartMonth is greater than EndMonth, the list of month names ...
Stripping Double Characters From a String
by Andreas Hillqvist
Here is a sipel function for stripping double characters from a ...
Return Any Name String in Proper Capitalization
by Carrie Foreman
Deleting Files or FileTypes En Masse
by Matheswaran Narayanasamy
Sometimes you run into a situtation where you want to delete all the files or a particular type of file (like text files - *.txt) in a folder.
Concatenating Big Strings
by Patrick Marshall
Please note that using the join function makes this code VB6 only (for only a small performance gain).
Restrict a Textbox to Accept Only Numbers
by Mitesh Budhabhatti
Sometimes we may need to restrict users from entering anything besides numbers in a textbox. The following code can achieve ...
Finding the Form That Contains a Control From Any Point in the Code
by Richard Morrison
You may find that you want to know something about the form that contains the control you wish to use. You could do this by passing a reference to the form, but that will get messy if you are nested ...
Expanding All the Subnodes For a Node in a TreeView
by Ahmad Khalil
The following recursive function allows users to do an expand all via ...
"Shrink" the Size of a File
by Andreas Hillqvist
Visual Basic lacks the ability to make a file smaller without having to recreate it. But it is possible to use the SetEndOfFile API. Here is a function for ...
Where are std::min() and std::max()?
by Danny Kalev
The Standard Library defines the two template functions std::min() and std::max() in the <algorithm> header. In general, you should use these template functions for calculating the min and ...
Extracting the Extension of a Filename
by Christo Pretorius
The following function returns the extension of the filename that is being passed to it. It also takes into account the facts that a filename can include multiple
Use Split function with Ubound Check to Return the Correct Extension
by Paul WC
This is a routine for returning the correct file extensions catering to ...
Returning the Next Alpha Range
by Venkat Alladi
This function returns the next alpha range. When you pass
Access Class Members From a Thread Function
by Koshy Panicker
Suppose you have a thread function ThreadFunc in a class CMyClass and you want to access a member of that class. Here's what to ...
Determining the Last Date Of a Month
by Todd Knudsen
It's common when working with dates to be able to determine the last date of a particular month. I've seen solutions to this problem that range from using arrays or a table to hold the number of ...
Extract the Extension of a Filename
by Subha Natarajan
Extracting the extension of a filename is a requirement in many file searches and file I/O related applications. A simple way to do this is to use the split function. The following function ...
41-60 of 383     Previous     Next
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date