User Profile

Collapse

Profile Sidebar

Collapse
marick66
marick66
Last Activity: Nov 16 '06, 01:35 AM
Joined: Nov 1 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • marick66
    started a topic Parallel Array and bubble sort
    in C

    Parallel Array and bubble sort

    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
    Code:
    #include <iostream>
    using namespace std;
    ...
    See more | Go to post

  • Sorry I forgot to add my source code, here it is
    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];
    ...
    See more | Go to post

    Leave a comment:


  • marick66
    started a topic Having some trouble with a multi-dimenstional array
    in C

    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.

    All help is appreciated.
    See more | Go to post
No activity results to display
Show More
Working...