プログラムを見ても何をしたいのかがわからないので、ちょっとずつこれは何をしているの?とか、噛み砕く質問をしてくれたらなんとかわかる程度です。
表示したい問題は下記のURLです。
http://gyazo.com/63c316e91268bdf782fb17c4aa5fffe0
ヒントのコードは下記の通りです。
/*C言語 構造体ポインタ 応用1*/
/*構造体作成 2分木・表示(降順)*/
#include<stdio.h>
#include<stdlib.h>
struct student{
char name[64];
int age;
float height;
float weight;
struct student *lower;
struct student *upper;
};
void displaydata( struct student *root);
main()
{
struct student *top,*ima,*tansaku;
FILE*sintyo;
sintyo=fopnen("身長.dat","r");
/*ファイルを読んでデータ格納 ポインタでつなぐ*/
for(i=0; ;i++){
このあと何をどうすればいいのかわからない状態です。
考え方のヒントをください。