I declared the int id in the private, part of my class.
                    private:
                      int id,age;
                      float gpa;
                      string last,first;
This code is in my file to display and call for functions that are in the array, and to sort the int id.
        student[i].sort_array(student[i].id,cap);
        i++;
        cout << i;
This is in a seperate file where i put my functions, i am able to display the contents of the array, if i student[i].put(cout) the data. I am not sure how to pass in an integer that would be in the provate part of my class
        void student::sort_array(int student[i].get(id),int n)
        {
            int j,temp;
            for(j=0;j<n-1;j++)
            { 
         //if out of position switch the out of align number
            if(student[j]<student[j+1])
            {
            temp =  student[j];
            student[j] = student[j+1];
            student[j+1] = temp;
            }
         }
 
     
     
     
    