I am trying to accomplish:
This assignment is concerned with sorting of data. Your task is to
read data from two files and create two sorted files. The primary
information file is called "main.run". It contains an unknown
number of records, with each record (line) consisting of a 25
character student name (First Last), an eleven character time
("00:00:00:00"), and a numeric team code. The team code is
separated from the time by one space and matches a team name of 35
characters in a second data file called "teams.dat". The first
team name in the "teams.dat" file has a team code of 1, the second
team 2, etc.

Your C++ program must first read the "main.run" file, sort the data
by time, and write the sorted information to an output file called
"sorted.out". The output file must contain the runner's name, school,
and time. After printing the "sorted.out" file, print an alphabetized
list of schools which had runners in the race and the number of
runners that finished the race for each school. Call the second
output file "school.out".

Use the following shuttle-exchange algorithm to sort your data:

SHUTTLE-EXCHANGE SORT

The algorithm works in a looping structure as follows:

1) Set a Boolean variable to true. This variable will be used
to indicate if the list is ordered.

2) Compare the first element in the array to the second element.
If they are not in order, swap the contents of the elements and
set the Boolean variable to false.

3) Compare the second element to the third element. If they are
not in order swap them and set the Boolean variable to false.
Continue to make the above type of comparison thru N - 1 elements,
where N is the maximum number of elements. ( example: 3 to 4,
4 to 5, 5 to 6, ...,N - 1 to N )

4) If the Boolean variable is true after a pass through the loop,
the list is ordered and the looping can be terminated. If the
Boolean variable is false, set it to true and begin the looping
process all over again.


my code thus far:
Code:
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <conio>

using namespace std;
ifstream input;
ofstream out;
struct main 
{
  char name[26];
  int time[11];
};
main mouse;  


void ReadMainData(ifstream& input);

int main()
{
ifstream input;
ofstream out;

void ReadMainData(ifstream& input);
  for(int i=0; i<26; i++)
  cout << mouse.name[i];

return 0; 
}
/*********************************************************/
void ReadMainData(ifstream& input)
{
  input.open("main.run");
  while(!input.eof())
  {
    for(int i=0; i<26; i++)
    {
      input.get(mouse.name[i]);
    }
    for(int i=0; i<11; i++)
    {
      input.get(mouse.time[i]);
    }
  }
  for(int i=0; i<11; i++)
  cout << mouse.time[i];
}
my question is what should I improve and add anything else you want.