mirror of
				https://gitlab.com/klmp200/LO27.git
				synced 2025-10-31 21:03:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			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;
 | |
| 	matrix.cols = CreateList();
 | |
| 	matrix.rows = CreateList();
 | |
| 	matrix.colCount = matrix.cols->size;
 | |
| 	matrix.rowCount= matrix.rows->size;
 | |
| 	int Rule = 170;
 | |
| 	int N = 1;
 | |
| 	applyRules(matrix,Rule,N);
 | |
| /*
 | |
| 	Matrix matrix;
 | |
| 	cellElement * tree = NULL;
 | |
| 	List * cols = NULL;
 | |
| 	List * rows = NULL;
 | |
| 
 | |
| 	cols = CreateList();
 | |
| 	rows = CreateList();
 | |
| 
 | |
| 
 | |
| 	tree = CreateCellElem();
 | |
| 	SetPositionIndex(tree,1,1);
 | |
| 
 | |
| 	AddNextRow(tree);
 | |
| 	SetPositionIndex(tree->nextRow,1,2);
 | |
| 
 | |
| 	AddNextCol(tree);
 | |
| 	SetPositionIndex(tree->nextCol,1,3);
 | |
| 
 | |
| 	SetNextRow(tree->nextCol,tree->nextRow);
 | |
| 
 | |
| 	recursivePrint(tree);
 | |
| 
 | |
| 
 | |
| 	removeNextRow(tree);
 | |
| 	removeNextCol(tree);
 | |
| 
 | |
| 	recursivePrint(tree);
 | |
| */
 | |
| 	return 0;
 | |
| 
 | |
| }
 |