mirror of
				https://gitlab.com/klmp200/LO27.git
				synced 2025-10-31 03:23:04 +00:00 
			
		
		
		
	Added example matrix
This commit is contained in:
		| @@ -668,23 +668,23 @@ bool equalsMatrix(Matrix m1, Matrix m2){ | ||||
|  | ||||
| void setRowToTrue(Matrix matrix, int RowNb){ | ||||
| 	int i =0; | ||||
| 	for (i=0;i<m2.colCount;i++){ | ||||
| 		setCellValue(matrix,i,RowNb);	 | ||||
| 	for (i=0;i<matrix.colCount;i++){ | ||||
| 		setCellValue(matrix,i,RowNb,true);	 | ||||
| 	} | ||||
| 	 | ||||
| } | ||||
|  | ||||
| void setColToTrue(Matrix matrix, int ColNb){ | ||||
| 	int i =0; | ||||
| 	for (i=0;i<m2.rowCount;i++){ | ||||
| 		setCellValue(matrix,ColNb,i);	 | ||||
| 	for (i=0;i<matrix.rowCount;i++){ | ||||
| 		setCellValue(matrix,ColNb,i,true);	 | ||||
| 	} | ||||
| 	 | ||||
| } | ||||
|  | ||||
| void createSquare(Matrix matrix){ | ||||
| 	setRowToTrue(matrix,rowCount/4); | ||||
| 	setRowToTrue(matrix,rowCount*3/4); | ||||
| 	setColToTrue(matrix,colCount/4); | ||||
| 	setColToTrue(matrix,colCount*3/4); | ||||
| 	setRowToTrue(matrix,matrix.rowCount/4); | ||||
| 	setRowToTrue(matrix,matrix.rowCount*3/4); | ||||
| 	setColToTrue(matrix,matrix.colCount/4); | ||||
| 	setColToTrue(matrix,matrix.colCount*3/4); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user