sources/JobAssignment.cpp
/**
 * Checks if a worker is free via the 2D vector that represents the 
 *      job assignations.
 * 
 * @param[in] &assignations the address in memory of the 2D vector that 
 *      represents the job assignations
 * @param[in] jobs the number of jobs
 * @param[in] row the row in the 2D vector that represents the 
 *      worker being analyzed
 * 
 * @returns "true" if the worker is free to be assigned to a job, or 
 *      "false" if he is not
*/
Checks if a worker is free via the 2D vector that represents the
job assignations.

@param[in] &assignations the address in memory of the 2D vector that
represents the job assignations
@param[in] jobs the number of jobs
@param[in] row the row in the 2D vector that represents the
worker being analyzed

@returns "true" if the worker is free to be assigned to a job, or
"false" if he is not
Checks if a worker is free via the 2D vector that represents the job assignations . @param [ in ] &assignations the address in memory of the 2D vector that represents the job assignations @param [ in ] jobs the number of jobs @param [ in ] row the row in the 2D vector that represents the worker being analyzed @returns " true " if the worker is free to be assigned to a job or " false " if he is not
bool checkIfFree(vector<vector<int>> &assignations, int jobs, int row){
    for (int col = 0; col < jobs; col++){
        if (assignations[row][col] == 1){
            return false;
        }
    }
    return true;
}
bool checkIfFree ( vector < vector < int > > & assignations , int jobs , int row ) { for ( int col = 0 ; col < jobs ; col ++ ) { if ( assignations [ row ] [ col ] == 1 ) { return false ; } } return true ; }
Checks if a worker is free via the 2D vector that represents the
      job assignations.
Checks if a worker is free via the 2D vector that represents the job assignations .
// Iterate over all the columns of the 2D vector  /**
         * If any of the columns (jobs) in the worker's row is equal to 
         * 1, then he is already assigned to a job.
        */ //Close if  //Close for 