|
|
C/C++ Scripts, C/C++ Source Code, C/C++ Articles, C/C++ Tutorials and C/C++ Resources
|
Algorithm for Detecting Duplicate/Previously Encountered Strings
|
|
|
A challenge I've seen pop up often while writing search tools is the ability to verify that your code is not traversing the same source multiple times. A spider traversing the web, for example, would never wish to traverse the same URL twice in a session - to do so would merely allow circular loops and endless headaches. |
|
C++ Stack Traces
|
|
|
Collecting call stack data only when applications crash has limitations. The tool Noam presents here collects information in real time, thereby providing a context in which certain errors occur. |
|
Display a Web Page in a Plain C Win32 Application
|
|
|
There are numerous examples that demonstrate how to embed Internet Explorer in your own window. But these examples typically use Microsoft Foundation Classes (MFC), .NET, C#, or at least the Windows Template Library (WTL) . If you're trying to use plain C, then there is a dirth of examples and information how to deal with OLE/COM objects such as IE's IWebBrowser2. |
|
Floyd's All Pairs Shortest Path Algorithm \r\n
|
|
|
Graph algorithms work on nodes and edges. Nodes and edges are represented in many ways. This well-known algorithm uses a connectivity matrix. The matrix is a square matrix with the number of columns and rows the same as there are Nodes. The diagonal elements are set to zero.. |
|
Generalized Callbacks: C++ and C# \r\n
|
|
|
Callbacks implement dynamic selection and invocation of functions at run time. Bill examines two technologies that implement callbacks—the libsigc++ class library in C++ and the delegate feature in C#. |
|
Geographic Distance and Azimuth Calculations \r\n
|
|
|
This article covers in detail the spherical distance and azimuth calculations and also provides sample code for three different approaches to distance calculations: one for a spherical model, and two for ellipsoid models. |
|
Implementing the MD5 Algorithm \r\n
|
|
|
Take advantage of a secure message-digest algorithm in your applications. Learn the means to easily integrate MD5 into your existing C++ applications using this cross-platform library. \r\n |
|
JavaScript Calls from C++\r\n
|
|
|
Sometimes, when we are using the IE Browser Control inside of a C++ application, we need to access the HTML elements. We can do it by using standard COM objects such as IWebBrowser2, IHTMLDocument2, and so forth. By doing this, we easily can implement features such as click button, click anchor, get input string, get HTML text, and so on. Unfortunately, Microsoft did not provide similar objects for JavaScript. |
|
The CMake Build Manager\r\n
|
|
|
CMake is an open-source, cross-platform C/C++ build manager that supports platform inspection and user-customized builds. |
|
The Quick Sort
|
|
|
A technique for sorting referred to as a partition-sort. Having a time complexity of NlogN, this is one of the fastest sorting algorithms available. |
|
|
|