C++ program to perform Radix Sort
#include
using namespace std;
int main() {
cout << "How many values to sort? ";
int n; cin >> n;
int a[n];
for(int i=0;i> a[i];
}
int e=1, d=3;
int i, j, k, m, digit, row, col;
int length = sizeof(a)/sizeof(int);
int bmat[length][10];
int c[10];
for(m=1;m<=d;m++)
{
for(i=0;i<10;i++)
{
c[i]=-1;
}
for(i=0;i
No comments:
Post a Comment