C++C++11C++14C++17Language FeatureLearn C++

Tutorial: Learn To Copy Matrix As A Excel Clipboard In Modern C++

Clipboardalso called thepaste buffer, is a buffer that operating systems provide to copy things (texts, bitmaps, tables, etc.) for the short term and transfer within and between application programs. The clipboard is usually temporary and unnamed, and its contents reside in the computer’s memory. InC++ Builderthere are good components to use Excel forms, excel…
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 To Search And Count Words From A Text File In Modern C++

C++ Builder is easy to operate on files on Windows. There are many methods to operate on files. Some of these methods are explained well in Windows File Operations in Modern C++. In this post we create a snippet to search and count a text from a text file. unsigned int count_text(UnicodeString text, UnicodeString filename) { if(FileExists(filename)) { UnicodeString us; unsigned int…
Read more
C++C++11C++14C++17Generic ProgrammingLearn C++

Learn To Easily Develop A Fun Fibonacci Number Generator In C++ For Windows

Fibonacci Numbers are sequence numbers called the Fibonacci sequence, and in mathematics, it starts with 0 and 1, and then each number is the sum of the two preceding ones. Fibonacci numbers are strongly related to Golden Ratio. In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of two quantities. There is Binet’s…
Read more