Demo entry 6360176

main.c

   

Submitted by anonymous on May 01, 2017 at 05:58
Language: C. Code size: 321 Bytes.

#include <stdio.h>
#include <stdlib.h>
#include "tree.h"
int main()
{
    tree s;//创建树
    FILE * fp;//将所得树状图输入文本文件中
    s=(winepoint)malloc(sizeof(struct Node1));//动态内存分配,创建树
    Tree_initial(s);
    find_path(s);
    fp=fopen("result.txt","ab+");
    cross_tree(s,0,fp);
    fclose(fp);
    return  0;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).