diff --git a/report.md b/report.md index 9872337..63c7a93 100644 --- a/report.md +++ b/report.md @@ -32,7 +32,7 @@ BEGIN getCellValue <- ERROR endif - if (findMatrixElem( matrix , ColPos , RowPos ) == NULL) + if (findMatrixElem( matrix , ColPos , RowPos ) = NULL) getCellValue <- false endif @@ -45,7 +45,7 @@ BEGIN elem:*cellElement <- NULL Row <- getElementPos(rows(matrix),RowPos) - if (Row == NULL) + if (Row = NULL) findMatrixElem <- NULL endif @@ -63,7 +63,7 @@ END ```C setCellValue(matrix:Matrix, ColPos:integer, RowPos:integer,value:bool):bool BEGIN - if (value == true) + if (value = true) setCellValue <- createMatrixElem(matrix,ColPos,RowPos) else if ( deleteMatrixElem(matrix,ColPos,RowPos) >= 0 ) @@ -93,7 +93,7 @@ createMatrixElem( matrix:Matrix, ColPos:integer, RowPos:integer):bool Row <- getElementPos(rows(matrix),RowPos) if (Row != NULL AND data(Row) != NULL) - if (colIndex(data(Row)) == ColPos) + if (colIndex(data(Row)) = ColPos) error ++ else if (colIndex(data(Row)) > ColPos) @@ -107,7 +107,7 @@ createMatrixElem( matrix:Matrix, ColPos:integer, RowPos:integer):bool tmp <- nextCol(tmp) endwhile - if ( nextCol(tmp) == NULL OR colIndex(nextCol(tmp)) > ColPos) + if ( nextCol(tmp) = NULL OR colIndex(nextCol(tmp)) > ColPos) nextCol(elem) <- nextCol(tmp) nextCol(tmp) <- elem else @@ -123,7 +123,7 @@ createMatrixElem( matrix:Matrix, ColPos:integer, RowPos:integer):bool Col <- getElementPos(cols(matrix),ColPos) if (Col != NULL AND data(Col) != NULL) - if (rowIndex(data(Col)) == RowPos) + if (rowIndex(data(Col)) = RowPos) error ++ else if (rowIndex(data(Col)) > RowPos) @@ -136,7 +136,7 @@ createMatrixElem( matrix:Matrix, ColPos:integer, RowPos:integer):bool tmp <- nextRow(tmp) endwhile - if (nextRow(tmp) == NULL OR rowIndex(nextRow(tmp)) > RowPos) + if (nextRow(tmp) = NULL OR rowIndex(nextRow(tmp)) > RowPos) nexRow(elem) <- nextRow(tmp) newRow(tmp) <- elem else @@ -168,21 +168,21 @@ BEGIN Col : *ListElement <- NULL elem <- findMatrixElem(matrix,ColPos,RowPos) - if (elem == NULL) + if (elem = NULL) deleteMatrixElem <- 0 endif Row <- getElementPos(rows(matrix),RowPos) - if (Row == NULL) + if (Row = NULL) deleteMatrixElem <- -1 endif - if (data(Row) == NULL) + if (data(Row) = NULL) removeElementPos(rows(matrix),RowPos) deleteMatrixElem <- -1 endif - if (colIndex(data(Row)) == ColPos) + if (colIndex(data(Row)) = ColPos) data(Row) <- nextCol(elem) else tmp <- data(Row) @@ -197,21 +197,21 @@ BEGIN endif - if (data(Row) == NULL) + if (data(Row) = NULL) removeElementPos(rows(matrix),RowPos) endif Col <- getElementPos(cols(matrix),ColPos) - if (Col == NULL) + if (Col = NULL) deleteMatrixElem <- -2 endif - if (data(Col) == NULL) + if (data(Col) = NULL) removeElementPos(cols(matrix),ColPos) deleteMatrixElem <- -1 endif - if (rowIndex(data(Col)) == RowPos) + if (rowIndex(data(Col)) = RowPos) data(Col) <- nextRow(elem) else tmp <- data(Col) @@ -225,7 +225,7 @@ BEGIN endif - if (data(Col) == NULL) + if (data(Col) = NULL) removeElementPos(cols(matrix),ColPos) endif