Archive for the ‘C++‘ Category

Biggest of 2 Numbers Using Function: C++

Find the biggest of two numbers using function and ternary operator. Basics of functions: A function is a sub program to perform a specific task. OR a group of instructions to perform specific task. Along with main() it is possible to define our own functions by following these steps: 1. Function prototype or Function declaration. [...]

(Basic) Find Sum Using Dynamic Memory Allocation: C++

This video tutorial illustrates basics of Dynamic memory allocation in C++. It shows the use of new and delete operator for allocating and deallocating the memory dynamically. Find the sum of entered elements using dynamic memory allocation in c++. In cpp, dynamic memory management can be done using the operators new and delete. Operator new [...]

Reverse Given Number And Check For Palindrome: C++

Cpp program to read a number, reverse the given number and check whether it is palindrome or not. Full Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 #include< iostream .h> #include< conio [...]

Array Basics in C++ : Find Sum

Video tutorial to show the basic use of arrays: Initialization, Declaration, Getting values from the users, finding sum of all the array elements etc. Array is a collection of homogeneous data items. Full Source Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [...]

Find the Factorial of a Number: C++

Video tutorial to find the factorial of a number: if the user enters 3, then the factorial is 1 * 2 * 3 i.e., factorial = 6 This logic must be handled with a c++ program. Full Source Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [...]

Biggest of 3 Numbers Using Ternary Operator: C++

Video tutorial to find the biggest of the three integer numbers in C++, using if-else control statements and Ternary Operator. Before watching this video, please make sure to watch and understand this short video: Find Biggest of 3 Numbers: C++ Full Source Code 1 2 3 4 5 6 7 8 9 10 11 12 [...]

Find Biggest of 3 Numbers: C++

Video tutorial to find the biggest of the three integer numbers in C++, using if-else control statements. Full Source Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 #include<iostream .h> #include<conio .h>   void main() { int a, [...]

Biggest of Two Numbers Using Ternary Operator: C++

Video tutorial to find the biggest of the two integer numbers in C++, using Ternary Operator. To find biggest of Two numbers using if-else control structure: Find Biggest of 2 Numbers: C++ Full Source Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [...]

Find Biggest of 2 Numbers: C++

Video tutorial to find the biggest of the two integer numbers in C++, using if-else control statements. Full Source Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #include<iostream .h> #include<conio .h>   void main() { int a, b; clrscr();   [...]

Addition of 2 Numbers: C++

This video tutorial illustrates a simple program of adding two integer numbers. Full Source Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #include<iostream .h> #include<conio .h>   void main() {   int a, b; clrscr();   cout< <"Enter two no\n"; cin>>a>>b;   int [...]

Object Oriented Programming: C++

To understand and switch from C to C++, you need to know some of the basic similarities and differences between the two. Sample C Program: #include<stdio.h> void main() { printf(“Welcome To C”); } Here stdio.h header file is included inorder to make use of printf and scanf functions. Sample Cpp Program: #include<iostream.h> void main() { [...]