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-10 01:28:10 +00:00
|
|
|
#include <CellElement.h>
|
2016-12-10 22:21:17 +00:00
|
|
|
#include <list.h>
|
2016-12-10 20:11:46 +00:00
|
|
|
|
|
|
|
int main(int argc, char **argv){
|
2016-12-11 01:32:51 +00:00
|
|
|
|
2016-12-10 20:11:46 +00:00
|
|
|
cellElement * tree = NULL;
|
|
|
|
tree = CreateCellElem();
|
|
|
|
tree->colIndex = 1;
|
2016-12-11 01:32:51 +00:00
|
|
|
tree->rowIndex = 1;
|
2016-12-10 20:11:46 +00:00
|
|
|
AddNextRow(tree);
|
|
|
|
tree->nextRow->colIndex = 2;
|
2016-12-11 01:32:51 +00:00
|
|
|
tree->nextRow->rowIndex = 2;
|
2016-12-10 20:11:46 +00:00
|
|
|
AddNextCol(tree);
|
|
|
|
tree->nextCol->colIndex = 3;
|
2016-12-11 01:32:51 +00:00
|
|
|
tree->nextCol->rowIndex = 2;
|
2016-12-10 20:11:46 +00:00
|
|
|
recursivePrint(tree);
|
|
|
|
removeNextRow(tree);
|
|
|
|
removeNextCol(tree);
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|