Monday 15 August 2011

Horizontal and vertical histogram of an array in C -


I need to get a given array of horizontal and vertical histograms. The following is the C-code that I tried, is there any way to improve this or any easy alternative method?

  #include & lt; Stdio.h & gt; # Size 10 in size (int) {int array [size] = {2, 5, 7, 8, 10, 16, 7, 4, 3, 4}; Int i, j, bark, temporary; / * Horizontal histogram * / for (i = 0; i   

}

Well done, though, a few small things Those that can be improved:

It seems that you have lost the X-axis on the horizontal histogram.

In addition, on this line:

  bigcount = array [1];   

is a one-stop-one error.

The next step I will take is to add some attributes to allow user to input input data. / P>

No comments:

Post a Comment