histograms

how do i create a histogram using a function and parameters. instead of a simple histogram i have to use the asci value table and the one my teacher gave us was.

const char PLOT_MARK = char(178);

and the function we have to use is
// Displays a histogram by using the PLOT_MARK symbol. After barHeight marks
// have been displayed, the actual value of the bar (barHeight) is also output
// as a data label.
void DisplayHistogramBar(const string assessment, const int barHeight);

...someone please help!!
What's the string for?

Print the PLOT_MARK using printf("%c",PLOT_MARK);
Last edited on
our teacher requires us to use strings for all functions, its stupid.
But what does it need to do?

What should happen when I call: DisplayHistogramBar("chocolate", 5); ?
Last edited on
Topic archived. No new replies allowed.