How can fix this code and make it run correctly.
Just I want it work as in this image.
http://www.2shared.com/fadmin/4394306/2837e29/ppP-008.jpg
#include <iostream>
#include <cstdlib>
using namespace std;
int rand_int(int a, int b);
int main (void){
int low, high, i,vect[50],c,d=0,B[50],q,j,A[50];
cout << "Plese provide the low and high values:\n";
cin >> low;
cin >> high;
cout<< "The random numbers between " << low << " and " << high << " are: \n";
for(j=0;j<50;j++)
{
c=rand_int(low, high);
cout<<c<<"\t";
A[j]=c;
}
cout<<"No-\t\t\t Repetations\n";
for(i=low;i<=high;i++)
{
for(j=0;j<50;j++)
{
if(A[j]=i)
d++;
}
q=i-low;
B[q]=d;
cout<<" "<<A[j]<<"\t\t\t"<<d<<"\n";
d=0;
}
getchar();
getchar();
}
int rand_int(int a, int b){
int j;
j=rand()%b;
while(j>a)
j=rand()%b;
return j;}