mirror of
https://gitlab.com/klmp200/LO27.git
synced 2024-11-05 12:28:03 +00:00
34 lines
831 B
C
34 lines
831 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 <CellElement.h>
|
|
#include <list.h>
|
|
|
|
int main(int argc, char **argv){
|
|
|
|
cellElement * tree = NULL;
|
|
tree = CreateCellElem();
|
|
tree->colIndex = 1;
|
|
tree->rowIndex = 1;
|
|
AddNextRow(tree);
|
|
tree->nextRow->colIndex = 2;
|
|
tree->nextRow->rowIndex = 2;
|
|
AddNextCol(tree);
|
|
tree->nextCol->colIndex = 3;
|
|
tree->nextCol->rowIndex = 2;
|
|
recursivePrint(tree);
|
|
removeNextRow(tree);
|
|
removeNextCol(tree);
|
|
|
|
|
|
return 0;
|
|
|
|
}
|