The most detailed rationale for programs is performed locally: considering the proximity of a program – usually a single function and the interfaces around it – and the reason for its action without reference to the rest of the program. This justification serves a broader objective: ensure that the whole program behaves appropriately. In this video, you will be learning how to put…
Learn about Data Structures in C & C++
April 30, 2021
In general, when we do programming we have a lot of variables and some of these variables are properties of an object, for example if we want to make a database about students in C++, each student has similar properties to store. We can generalize all these properties in a…
Learn about Object Oriented Programming, Introduction to OOP
April 29, 2021
When learning about C++ programming a lot of programmers have many questions. Let’s answer them in this topic. One of the biggest difference between C and C++ programming languages is, C++ is anObject Oriented Programming (OOP)language that supports using…
Learn to Use Constant References in C++ Functions
April 28, 2021
When we call a function with parameters taken by value, it copies the values to be made. This is a relatively inexpensive operation for fundamental types such as int, float, etc. If the parameter is composed of a large compound type, this may result in a certain overhead. For example, let’s consider this following function to combine name, mid name, and surname.
string fullname (string…
Learn to Use Function Templates in C++
April 27, 2021
A Template is a simple and a very powerful statement in C++. A Template Function may have multiple template parameter types, and the function can still use regular non-templated types. In a previous post, about Function Overloading, we had two add() functions working with…
Learn C++ With Making Games Start Fast: A Story About Concurrency by Mathieu Ruport (CPPCon 2020) Video
April 26, 2021
Games taking too long to get started is a common criticism in game development. Players dislike it and developers spend a long time watching screen loading. The audience will be shown how Intel vTune can be used to profile threading problems, how “thread safe”…
Learn About Parameters Passed by Reference in Functions
April 24, 2021
In the functions that we created in previous posts, their parameters have always been passedby value. This means that, when we call a function, what is passed to the function are the values of these parameters on that moment of the call. Variables are copied into the…
Learn to Use Parameters in Functions in C++
April 23, 2021
In the C++ programming language, we can add functions with many parameters, each parameter may have different types. We can add as many parameters as we want by defining its type and its name to be used inside that function separated with ‘,’ coma. We can shape…
Learn About Function Declaration and Definition in C++
April 22, 2021
In C and C++ programming language there are two parts of a function, Declaration, and Definition.
Function Declarationis the combination of the return type of function, function’s name, and parameters in parenthesis.Function Definitionis the body of the function includes statements and other functions.
In general use, they are defined together as below,
myfunction() // this…