Artificial Intelligence TechC++Code SnippetLearn C++Numerics

AI Techs :: Minimum Edit Distance Method in Unicode Strings in C++

Inthe Artificial Intelligence Technology, mostly in the field of Natural Language Processing (NLP), Computer Linguistics and in other fields of Computer Science, The Edit Distance Methodis a way of quantifying how dissimilar two text far from each other in char comparison by counting the minimum number of operations required to transform one string into the other. Edit distances…
Read more
C++Code SnippetGeneric ProgrammingLanguage FeatureLearn C++

Learn How To Check The 32bitness Or 64bitness Your C++ Application

If you are looking to a way to reliably determine whether C++ code is being compiled in 32 bits or 64 bits there is way to check in C++ codes. For a cross platform compilation (cross compiler environments like FireMonkey framework in C++ Builder) there is no single reliable method to check if your application is running as a 32bits or 64bits application. Note that lower bits applications (i.e…
Read more
C++C++17Code SnippetLanguage FeatureLearn C++

Tutorial: Easily Learn To Use optional In Modern C++ On Windows

Optional definition (std::optional) manages anoptionalcontained value, i.e. a value that may or may not be present. This class templatecomes with C++17 standard, it is used with CLANG and other C++ compilers which has this standard. A common use case foroptionalis the return value of a function that may fail. Any instance ofoptional<T>at any given…
Read more
C++C++11C++14C++17Code SnippetLanguage FeatureLearn C++

Quickly Learn How To Use Canvas Drawing In C++ On Windows

In C++ Builder, it is easy to draw images on Bitmaps by using Canvas property and methods to draw, Canvas can be used on both VCL and FMX applications. Canvas provides an abstract drawing space for objects that must render their own images. TCanvas provides properties, events, and methods that assist in creating an image by: Specifying the type of brush, stroke, and font to use.Drawing and…
Read more