#include<stdio.h>
void build() /*字母线性表的生成,即建表操作*/
{
int i;
char V[26];
V[0]='a';
for(i=1;i<=25;i++)
V[i]=V[i-1]+1;
}
void display(int n) /*字母线性表的显示,即读表操作*/
{ int i;
char V[26];
for(i=0;i<=n-1;i++)
printf("%c",V[i]);
printf("\n");
}
void main() /*主函数,字母线性表的生成和输出*/
{
build();
display(26);
}
温馨提示:答案为网友推荐,仅供参考