Arrays

This section contains source codes of many Programs that are the Basics of Programming in C++.

Arrays

Postby MT Shahzad on March 4th, 2008, 4:44 pm

The programs show the usage of Single-Dimensional & Multi-Dimensional Arrays.

CPP-051: A C++ Program that declares and initialize an array of size 10 of type int with some elements. Also computes and display the largest element of the array.

CPP-052: A C++ Program that declares an array of size 10 that contains integers, initialize all elements by 0 and print the contents of the array. Then place consecutive even numbers starting from 2 and again display the contents of the array again and also computes and display the sum of the array.

CPP-053: A C++ Program that declares an array of size 10 and type int and reverse the contents of the array.

CPP-054: A C++ Program to print a histogram in the following pattern.
*
**
***
****
*****
[ using array ]

CPP-055: A C++ Program to print an array using funtion definition.

CPP-056: A C++ Program that reads the marks obtained of ten students out of 100 in four papers. It computes and display the total marks and status of each student.

CPP-057: A C++ Program to illustrate the difference b/w passing the whole array and the single array element as a parameter to a funtion.
CPP-058: A C++ Program to illustrate the Bubble Sorting of arrays.
CPP-059: A C++ Program to search an element in an array using Linear search.
CPP-060: A C++ Program to search an element in an array using Binary search.

CPP-061: A C++ Program that reads the marks obtained of ten students out of 100. It also computes the average, lowest and highest marks. Then shows the difference of marks of every student from the average marks.0

CPP-062: A C++ Program to declare an 2D array of 3*4 size of type int and initialize it by 5,10,15,... and print the contents of the array in a single line, row by row and also display its sum.
You do not have the required permissions to view the files attached to this post.
MT Shahzad
Web/Software Developer
http://mts.sw3solutions.com
User avatar
MT Shahzad
Site Admin
 
Posts: 300
Joined: February 29th, 2008, 8:11 am
Location: Muridke, Pakistan

Arrays

Postby Muhammad Zakaullah on July 28th, 2008, 4:03 am

These are the c++ programs which show the use of array with different examples.
You do not have the required permissions to view the files attached to this post.
User avatar
Muhammad Zakaullah
 
Posts: 13
Joined: March 10th, 2008, 2:35 pm
Location: Muridke, Pakistan


Return to Basic Programming

Who is online

Users browsing this forum: No registered users and 0 guests