authorware实验报告

时间:2022-11-21 22:30:22 作者:壹号 字数:449字

#include "stdafx.h"

typedef struct LinkTable {

LinkTable * Next;

int data;

} lt,*plt;

void _print(plt phead);

plt reP(plt phead);

int _tmain(int argc, _TCHAR* argv[]) {

plt p=NULL;

plt phead;

for(int i=0;i<10;i++)

{

if(!p)

{

p=new lt;

p->data=i;

phead=p;

i++;

}

p->Next=new lt;

p=p->Next;

p->data=i;

p->Next=NULL;

}

_ print(phead);

phead=reP(phead);

…… 此处隐藏0字 ……

_print(phead);

getchar();

return 0;

}

plt reP(plt phead)

{