I'm trying to write a program that takes numbers from a text file and then sorts them first by name and then by the average. When I go to compile I get 3 overload errors and I can't figure out where I am going wrong, I haven't written the sorting functions yet I am just trying to get my read and write functions to work properly. Any help would be appreciated. Here is the code
#include <iostream>
using namespace std;
const int numberOfTests = 1;
int read (int scores [][numberOfTests]);
void countScores (int studentScore[][numberOfTests], int numberOfStundents, int counts[101]);
void writeHistogram (int counts[101]);
int main ()
{
int studentScore[30][numberOfTests];
int counts[101];
Having some trouble with a multi-dimenstional array
I am trying to write a program that takes a test score into an array and prints out the scores into a histogram, I can't figure out how to get count each test score and remember it to turn it into the histogram at the end.
Leave a comment: