mirror of
				https://gitlab.com/klmp200/LO27.git
				synced 2025-11-04 01:33:04 +00:00 
			
		
		
		
	added something
This commit is contained in:
		@@ -665,3 +665,26 @@ bool equalsMatrix(Matrix m1, Matrix m2){
 | 
			
		||||
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void setRowToTrue(Matrix matrix, int RowNb){
 | 
			
		||||
	int i =0;
 | 
			
		||||
	for (i=0;i<m2.colCount;i++){
 | 
			
		||||
		setCellValue(matrix,i,RowNb);	
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void setColToTrue(Matrix matrix, int ColNb){
 | 
			
		||||
	int i =0;
 | 
			
		||||
	for (i=0;i<m2.rowCount;i++){
 | 
			
		||||
		setCellValue(matrix,ColNb,i);	
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void createSquare(Matrix matrix){
 | 
			
		||||
	setRowToTrue(matrix,rowCount/4);
 | 
			
		||||
	setRowToTrue(matrix,rowCount*3/4);
 | 
			
		||||
	setColToTrue(matrix,colCount/4);
 | 
			
		||||
	setColToTrue(matrix,colCount*3/4);
 | 
			
		||||
}
 | 
			
		||||
@@ -494,5 +494,31 @@ bool isColumnEmpty(Matrix matrix,int nb);
 | 
			
		||||
*/
 | 
			
		||||
bool isRowEmpty(Matrix matrix,int nb);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
* Sets a Row to true
 | 
			
		||||
*
 | 
			
		||||
* @param matrix a Matrix
 | 
			
		||||
* @param RowNb int number of the row
 | 
			
		||||
*/
 | 
			
		||||
void setRowToTrue(Matrix matrix, int RowNb);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
* Sets a Col to true
 | 
			
		||||
*
 | 
			
		||||
* @param matrix a Matrix
 | 
			
		||||
* @param ColNb int nuber of the col
 | 
			
		||||
*/
 | 
			
		||||
void setColToTrue(Matrix matrix, int ColNb);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
* Sets some values to true to create a square in the matrix
 | 
			
		||||
*
 | 
			
		||||
* @param matrix a Matrix
 | 
			
		||||
*/
 | 
			
		||||
void createSquare(Matrix matrix);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user