1
0
mirror of https://gitlab.com/klmp200/LO27.git synced 2024-11-01 01:18:03 +00:00
LO27/main.c

37 lines
927 B
C
Raw Normal View History

2016-12-10 01:28:10 +00:00
/*********************************************************************************
* File Name : main.c
* Created By : klmp200
* Creation Date : [2016-12-10 01:06]
* Last Modified : [2016-12-10 01:07]
2016-12-10 20:11:46 +00:00
* Description :
2016-12-10 01:28:10 +00:00
**********************************************************************************/
#include <stdio.h>
#include <stdlib.h>
2016-12-13 14:12:55 +00:00
#include <matrix.h>
2016-12-10 20:11:46 +00:00
int main(int argc, char **argv){
2016-12-13 16:28:13 +00:00
Matrix matrix = CreateMatrix();
int Rule = 256;
int N = 1;
2016-12-13 14:12:55 +00:00
applyRules(matrix,Rule,N);
matrix = SetMatrixDim(matrix,3,3);
BasicPrintMatrix(matrix);
SetCellValue(matrix,0,0,true);
SetCellValue(matrix,0,1,true);
SetCellValue(matrix,0,2,true);
BasicPrintMatrix(matrix);
2016-12-11 02:25:21 +00:00
SetCellValue(matrix,0,0,false);
SetCellValue(matrix,0,1,false);
BasicPrintMatrix(matrix);
freeMatrix(matrix);
2016-12-10 01:28:10 +00:00
return 0;
2016-12-10 20:11:46 +00:00
2016-12-10 01:28:10 +00:00
}
/* todo
*modifier DeleteListContent avec sli
*/