这个程序那里80*m是怎么回事,80是什么

来源:百度知道 编辑:UC知道 时间:2024/07/07 05:56:01
#include <stdio.h>
#include <stdlib.h>
#define MAX 100

typedef struct node
{
char Data[80];
struct node *Next;
}nodetype;

typedef struct head
{
int Num;
int Len;
nodetype *Next;
}headtype;

headtype Head[MAX];

void Initial();
int MenuSelect();
void EnterData();
void DeleteLine();
void List();
void ClearBuffer();

void main()
{
char choice;
Initial();
while(1)
{
choice = MenuSelect();
switch(choice)
{
case 1:
EnterData();
break;
case 2:
DeleteLine();
break;
case 3:
List();
break;
case 4:
exit(0);
}
}

}

void ClearBuffer()
{
while(getchar()!='\n');
}

void Initial()
{
int i;
for(i=0; i<MAX; i++)
{
Head[i].

m给出的初始值就是1,然后就在循环之中不断的加1,循环的 作用就是在j的值是80的倍数的时候,执行p指针后移的操作,一直到j<=n条件不满足时才终止。你仔细看看就会明白了!

如果还是不明白看以再聊!