mirror of
https://gitlab.com/klmp200/LO27.git
synced 2025-07-11 22:59:22 +00:00
CreateMatrix
This commit is contained in:
@ -21,3 +21,12 @@ Matrix applyRules (Matrix matrix,int Rules, int N){
|
||||
}
|
||||
return matrix;
|
||||
}
|
||||
|
||||
Matrix CreateMatrix(){
|
||||
Matrix matrix;
|
||||
matrix.colCount = 0;
|
||||
matrix.rowCount = 0;
|
||||
matrix.cols = CreateList();
|
||||
matrix.rows = CreateList();
|
||||
return matrix;
|
||||
}
|
||||
|
@ -35,7 +35,9 @@ typedef struct Matrix {
|
||||
*@N : number of time the rules will be applied
|
||||
*
|
||||
*/
|
||||
Matrix applyRules (Matrix matrix,int Rules, int N);
|
||||
Matrix applyRules(Matrix matrix,int Rules, int N);
|
||||
|
||||
Matrix CreateMatrix();
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user