C++C++11C++14C++17Introduction to C++Learn C++

What You Need To Learn About Using Bits In C++ Software

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 let’s remind ourselves where bits come from. A brief background to CPU architecture The construction, size…
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++Learn C++

Learn to Use Date and Its Properties in Your C++ App

How can we use Date in a C++ App? In programming we have two important parameters that we frequently use – the Date and Time properties. The Date and Time property is obtained from a timer or time module which is a physical device on the hardware you are using. For example, a real-time clock (RTC) DS3231 module is used to count and ‘remember’ the correct time on IoTs. Other…
Read more