*
* *
* * *
* *
就是这样。
谁有强殖装甲第二部,可以Q我460054868
#include<stdio.h>
long space=(5+2)*5+1+2;
char letter[36];
char *ReadLetter(int num)
{
FILE *fp;
if((fp=fopen("letter26.txt","rd"))==NULL)
{
printf("You don't have the 'letter26.txt' file!");
getch();
exit(1);
}
fseek(fp,space*num+3,0);
fread(letter,sizeof(char),29,fp);
fclose(fp);
}
main()
{
int i,j,w,l=0;
char *word="abcd";
while(word[l])
{
if(word[l]>='A'&&word[l]<='Z')w='A';
if(word[l]>='a'&&word[l]<='z')w='a';
ReadLetter(word[l]-w);
for(i=0;i<5;i++)
for(j=0;j<5;j++)
{
if(letter[j*6+i]=='*')
{
gotoxy(i+l*6+1,j+1);
printf("%c",letter[j*6+i]);
}
}
l++;
}
getch();
}
这是第二题的程序