mirror of
https://gitlab.com/klmp200/LO27.git
synced 2024-06-01 02:49:39 +00:00
32 lines
825 B
C
32 lines
825 B
C
/*********************************************************************************
|
|
* File Name : main.c
|
|
* Created By : klmp200
|
|
* Creation Date : [2016-12-10 01:06]
|
|
* Last Modified : [2016-12-10 01:07]
|
|
* Description :
|
|
**********************************************************************************/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <matrix.h>
|
|
|
|
int main(int argc, char **argv){
|
|
Matrix matrix = CreateMatrix();
|
|
int Rule = 256;
|
|
int N = 1;
|
|
applyRules(matrix,Rule,N);
|
|
matrix = SetMatrixDim(matrix,1,2);
|
|
|
|
BasicPrintMatrix(matrix);
|
|
|
|
SetCellValue(matrix,0,0,true);
|
|
SetCellValue(matrix,0,0,true);
|
|
BasicPrintMatrix(matrix);
|
|
|
|
SetCellValue(matrix,0,0,false);
|
|
SetCellValue(matrix,0,0,false);
|
|
BasicPrintMatrix(matrix);
|
|
return 0;
|
|
|
|
}
|