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

Learn about Data Structures in C & C++

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 single group. In this post we will explain structs in detail.In C & C++ programming; aData Structure(struct)…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn to Use Function Templates in C++

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 integer and float numbers, in that example we can say add() function is overloaded with int and float parameter types, and…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn About Function Declaration and Definition in C++

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