Pointers in C++

Pointers in C++ are the variables that contain memory addresses as their values. Normally, a variable directly contains a specific value. A pointer contains the memory address of a variable that,...

Classes with applications in C++

Classes are defined by using the keyword “ class ”  and have a body closed in braces {}  just like structures and ends with a semicolon( ; ). We cannot initialize...

Linked Lists with applications in C++

In computer science, linked lists are data structure consisting of a group of nodes which together represent a sequence. Under the simplest form, each node is composed of a data and...

Fractional Calculator in C++

We can easily use structures to create a fractional calculator than can solve fractional numbers in C++. It is just an easy approach through structures, we can easily create a simple...

Converting lowercase to uppercase in C++

Here we are converting lowercase to uppercase in C++ by using an additional library in our includes;Here is a code which is able of converting a string from lowercase to uppercase: // converting lowercase to uppercase in C++ #include <iostream> #include <cctype> using namespace std; void convertToUppercase( char * );   int main() {     char phrase = "characters and $32.98";     cout << "The phrase before conversion is: " << phrase;     convertToUppercase( phrase );     cout << "nThe phrase after conversion is:  "         << phrase << endl;     return 0;  // indicates successful termination }   // convert string to uppercase letters void convertToUppercase( char *sPtr ) {     while ( *sPtr != '' ) {   // current character is not ''         if ( islower( *sPtr ) )  // if character is lowercase,             *sPtr = toupper( *sPtr );  // convert to uppercase         ++sPtr;  // move sPtr to next character in string     } } in...

C++ Program to find largest of 3 numbers

In C++ we can implement a logic to write a program to find largest of 3 numbers. So for finding maximum number from given two, three or more numbers, this is...

Drawing a Triangle in Console window

Here is a C++ code containing nested loops which is able of drawing a triangle in your console window.We can use loops easily to draw many structures in our console window,...

Calculation of Summation in C++

In Mathematics we have studied "SUMMATION". the below example provides you the C++ code to find summation of several numbers in C++. We can take the inputs from the user to...

A Simple Calculator in C++

If we want to create a simple calculator in C++ which is able to operate simple arithmetic operations  like addition, subtraction, multiplication and division. again here is an example of applications...

Comparing two Numbers in C++

Here we are going to look at an example which is able of comparing two numbers in C++. In future we might need a simple code for comparing two integers to...