How can we convert one string to char array in Modern C++? Here are the answers with C++ software examples.
Generally, as an introduction to C++, in addition to int, float, double there is another data type, string that we use for alphanumeric variables. In C++ there are several typedefs for common character types are provided: String types are defined in header<string>.
strings…
How can we read a formatted string in a C++ app? How can I convert a string to a stringstream ? What is string? What is std::stringstream? What are the methods that can be used to read the formatted strings? Is there a simple example on how to read a formatted string ? Is…
What You Need To Learn About Using Bits In C++ Software
March 11, 2022
How can we print numbers in binary form? How can we set a bit in an integer? How we can set, clear, or toggle bits (binary digits) of a number? How can we change the nth bit of a number? In this post, we will answer these questions and use them in our own C++ software. First…
This Is How To Simulate Ball Physics 3D in A C++ App
March 8, 2022
Do you want to learn how to make your C++ app simulate physics of objects in 3D without using any 3D engine? In this post we will explain how we can simulate ball physics 2D in a simple way. Let’s assume that we look from a X-Y view, and Y is the height that means Y=0 is the ground. How we can simulate a ball physics in a given ball velocity, and gravity in that environment?
C++…
What Are The Top 5 C++ Compilers Of 2021?
March 1, 2022
In 2021, If we combine C, C++, C++ Builder, Visual C++, Objective-C, Swift, GNU C/C++, and other C and C++ programming languages, C/C++ was the most used programming language according to most of the statistical web sites. In addition to these number there are more C++…
What Is The Implicit Destructor Created By The C++ Compiler?
February 25, 2022
The C++ compiler creates an implicitly defined destructor. Do you want to learn about the implicitly defined destructor or what kind of methods we have that we can declare and use with the implicitly defined destructor? In this post, we will try to explain Implicitly Defined…
What Is The Typical Declaration Of A Destructor In A C++ App?
February 24, 2022
When you construct an object in your C++ app, sometimes you need operations to deconstruct. Destructors not only used in classes but also used with struct and union data types. Do you want to learn what is destructor or what kind of methods we have that we can declare and use destructors? In this post, we will try to explain how to use a Typical Destructor in Classes with given examples.
What…
This Is How To Use The VCL StringGrid Component In A C++ App
February 23, 2022
C++ Builder has a lot of great components you can use to create a C++ app and StringGrid (TStringGrid) is one of these. A StringGrid represents a grid control designed to simplify the handling of strings.
We can easily add a TStringGrid object to a form to represent…
What You Need To Know About Sigmoid Functions In Neural Nets
February 21, 2022
Which activation function are the most popular? What is Logistic Function? What is difference between Logic Function and Sigmoid Function? How can I use these functions in my C++ app? Briefly, a Sigmoid Function is one of the most popular activation functions that are used…
How To Make Your C++ Compiler Easily Compile Code Samples
February 18, 2022