Here is the topic
[FONT=helvetica, arial, verdana, 'ms sans serif', sans-serif]Each user has a unique five-digit ID number.Whenever a user logs on, the users's ID,lab number,and the computer station number are transmitted to your system.For example,if the user 49193 logs onto station 2 in lab 3, then your sytem recieves(49193,2,3) as input data.Similarly,when a  user logs off a station,then your system receives the lab number and computer station number. write a computer program that could be used to track,by lab which user is logged onto which computer. Create a menu that allows the administrator to simulate the transmission of information by manually typing in the login or logoff data.Whenever someone logs in or out, the display should be update.Also write a search function so that the administrator can type in a use ID and the system will output the lab and station number that user is logged into, or NONE if the user is not logging to any computer.[/FONT]
Code:
#include <iostream>#include <cstdlib>


using namespace std;


int **dynArray(int row, int cols)
{
    int **myPtr;
    myPtr = new int *[row];
    for(int i = 0; i < row; i++)
    myPtr[i] = new int[cols];
    for(int i = 0; i<row ; i++)
    if(myPtr[i] == 0)
    cout<<"empty";
    
    return myPtr;   
}
void getinput(int &ID,int &Station,int &labnumb)
{
     cout<<" Enter your ID number: "<<endl;
     cin>>ID;
      cout<<" Enter your station number: "<<endl;
     cin>>Station;
      cout<<" Enter your lab number: "<<endl;
     cin>>labnumb;
     return;  
}
void getoutput(int &ID,int &Station,int &labnumb)
{
     cout<< "You have been logged out."<<endl;
    return;
}
void login(int **dynArray,int &ID,int &Station,int &labnumb)
{
     dynArray[labnumb][Station] = ID;
     return;
     
}
void search(int **dynArry)
{
     
}     


void Menu(int **dynArray,int &ID,int &Station,int &labnumb)
{
     int choice;
     cin>>choice;
     if(choice == 1)
         login(**dynArray,ID,Station,labnumb);
     if(choice == 2)
         search() //This is input later on
}


int main()
{
    int **lab;
     lab = new int*[4];
    for(int i = 0; i <4 ; i++)
    {
            *(lab + i) = new int;
    }
    
    
    


        
    lab = dynArray(4,7);
   
      system("PAUSE");
      return 0;
}
;
I don't know how to declare and write the search function. Also, I need help with what do I need to add to complete the program.Because I kind of mess up everything up@@ If anyone can suggest me to do more thing or less Thanks