Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu
Showing posts with label 2d array. Show all posts
Showing posts with label 2d array. Show all posts

Selection sort in C++

C++ program for selection sort to sort numbers. This code implements selection sort algorithm to arrange numbers of an array in ascending order. With a little modification it will arrange numbers in descending order.

C++ program for binary search

This code implements binary search in c ++language. It can only be used for sorted arrays, but it's fast as compared to linear search. If you wish to use binary search on an array which is not sorted then you must sort it using some sorting technique say merge sort and then use binary search algorithm to find the desired element in the list. If the element to be searched is found then its position is printed.

Linear search in C++

The following code implements linear search (Searching algorithm) which is used to find whether a given number is present in an array and if it is present then at what location it occurs. It is also known as sequential search. It is very simple and works as follows: We keep on comparing each element with the element to search until the desired element is found

Matrix multiplication in c++

 c++ program to multiply matrices (two dimensional array), this program multiplies two matrices which will be entered by the user. Firstly user will enter the order of a matrix. If the entered orders of two matrix is such that they can't be multiplied then an error message is displayed on the screen.

Square Matrix Addition and Subtraction ......

  Program for the Addition & Subtraction of two square Matrix (using two dimensional array).
well simple program, user can input the value of row & column,since it is a square matrix
so row & column of both matrix is same.
Blogger Widgets

Find Us On Google, Just type - way2cplusplus -

If you have any questions on implementing or understanding this C++ Program , shoot me a comment and I'll be glad to help! :) :)