C++C++11C++14C++17Learn C++

This Is How To Convert A String To A Char Array In C++ Software

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…
Read more
C++Game DevelopmentLanguage FeatureLearn C++

This Is How To Simulate Ball Physics 3D in A C++ App

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++…
Read more
C++C++11C++14C++17Introduction to C++

What Is The Typical Declaration Of A Destructor In A C++ App?

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…
Read more