Our screens are 2D dimensional planes and consists of pixels in X and Y directions. How we display a 3D object in this 2D plane ? 3D objects in our 2D screens are projection of 3D coordinates by using mathematical calculations. In 3D operations, i.e. in 3D graphics, 3D robotics, 3D mechanics; we use matrix forms which are multi dimensional arrays in C++. Generally they are 3 dimensional arrays…
Learn To Use Arithmetics On Pointers In C++
April 12, 2021
In a previous post, we learned that pointers are variables to point address which is also an integer value. That means we can do arithmetic operations on a pointer variable. But do not forget that we operate on the addresses in our RAMs, so we should be careful and we should…
The normal C++ error handling technique, exceptions, does not work out of the box. There is a need to develop new patterns for error handling. The video will be demonstrating how design patterns already exist for parallel error handling and how these design patterns will be…
Learn To Use Break And Continue In Loops With C++
April 10, 2021
1. Using break in Loops
break statement is used to break code-block in case statements and it is also used to jump out of a loop. In an earlier post, we used break in switch() statements.
For example we can break for() loops, in this loop below we can break in some step before counting all range,
for( int a=0; a<=10; a++)
{
std::cout << a << ",";
…
Learn To Define And Use Arrays In C++
April 9, 2021
Arrays are used to define a data block in the memory with number of data types, like integer numbers, floating point numbers, characters, structures, … etc. C & C++ programming language provides this data structure, called as array that stores a fixed-size of…
Design Patterns are interchangeable design elements that can help to make the program more manageable, scalable, and extensible. In this video, you will be learning the basics of the trends of artistic, structural and behavioral design. This talk is targeted at beginners who…
Discover Switch Statements in C++
April 7, 2021
Another one of the most used logical operators in C++ is switch() statement. A switch statement allows you to check variable and you can branch to different cases in accordance with it’s value. Each cases can be defined for different values, and the variable being switched on is checked for each case.When the switch expression is evaluated once, the value of the given expression is…
Discover If Statements and Conditions in C++
April 6, 2021
One of the important part in programming is logics in functions and main program. Each these conditions are important to decide how code flow will work in runtime. In programming we use conditions and if – else statements. In C++ if statements can be done in one line…
Learn to Use While and Do-While Loops in C++
April 5, 2021
While loops allow you to repeat a block of code as long as your specified condition is reached. Loops are used very offend in programming because they save time, reduce errors, and they make code more readable.
1. The While Loop
In the mechanism of the while statement…
Learn C++ With Quickly Testing Qt Desktop Application with Approval Tests by Clare Macrae (CPPCon 2020) Video
April 4, 2021
This video will discuss the problems and possible sources of error that are unique to the code, which the Qt cross-platform graphical user interface library uses, and then explain how to defend against them. The video will also briefly discuss some other resources that can help to inspect and maintain the Qt code, which in turn will boost testability. Audience will discover some simple practical…