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

How To Use Base-8 (Octal) Numbers In Modern C++?

In general, in nearly all programming languages, including Modern C++, we use base-10 numbers, while our computer hardware uses the binary base-2 system (bits). I personally believe that base-10 is because we typically have 10 fingers and since we learn to counting on our fingers we use base-10 primarily. However, due to the way binary works it is sometimes convenient to use base-8 system octal…
Read more
CC++Introduction to C++Learn C++

How To Run A Program In C

C is one of the most powerful programming languages and it’s suitable for a wide variety of uses. You can compile C code with a number of different C and C++ compilers. The RAD Studio and C++ Builder IDEs are extremely powerful development tools for those who want to…
C++Introduction to C++Language FeatureLearn C++

How To Convert An Integer To A String In A C++ App

How can I make my C++ app convert an integer number to a string? How can I put an Int into the Text property of a component? What is the IntToStr method and what does it do? Can we use printf() method with int in modern C++? Let’s answer these questions. What is the difference in a C++ app between a String and a Unicode string In a Modern C++ app, we use the Unicode string format…
Read more
C++Introduction to C++Language FeatureLearn C++

Learn to Display Formatted Floating Numbers in C++ Builder

How we can display floating or double numbers in C++ Builder? How we can apply formatting display to floating numbers? How we can use StrToFloatF method in C++ Builder? Can we use printf in Modern C++? Let’s answer all these questions. What does the phrase “formatted floating point numbers” mean in C++? In programming, we use float, double, long double datatypes a lot for…
Read more