C/C++の宿題を片付けます 112代目
■ このスレッドは過去ログ倉庫に格納されています
0390387です
2008/07/10(木) 00:57:50#include <stdio.h>
#include <stdlib.h>
typedef struct person{
int no,age;
char name[40];
struct person *next;
}PD;
#define FN "person.txt" // 入力するファイル名
int main(void)
{
PD *top,*cur,*end;
FILE *fp=fopen(FN,"r");
int age;
if(fp==NULL) {
printf("%sが開けません : ",FN);
perror("");
return 1;
}
top=(PD*)malloc(sizeof(PD));
cur=top;
■ このスレッドは過去ログ倉庫に格納されています