问题描述:
C语言错误 left of '.name' must have struct/union type
#include
#include
#include
#include"me.h"
void pr_4()
{
\x05int a=0;char ch;int n=0;
\x05char *numstr;
\x05char *SongInfo;
if((fp=fopen("SongInfo.dat","rb"))==NULL)
\x05{
\x05printf("\ncannot open file \n");
\x05exit(0);
\x05}
\x05while(fread(&SI,sizeof (struct SongInfo),1,fp)==1)
\x05\x05n++;
\x05 a=n;
\x05\x05printf("请输入查询方式\n");
\x05\x05printf("1 歌曲名称 2 歌曲作者 3 歌曲演唱者\n");
ch=getchar();getchar();
\x05\x05switch(ch)
\x05\x05{
\x05\x05case 1:
\x05\x05\x05\x05 printf("请输入要查找歌曲名称:\n");
\x05\x05\x05\x05 gets(numstr);
\x05\x05\x05\x05 for(n=0;n
#include
#include
#include
#include"me.h"
void pr_4()
{
\x05int a=0;char ch;int n=0;
\x05char *numstr;
\x05char *SongInfo;
if((fp=fopen("SongInfo.dat","rb"))==NULL)
\x05{
\x05printf("\ncannot open file \n");
\x05exit(0);
\x05}
\x05while(fread(&SI,sizeof (struct SongInfo),1,fp)==1)
\x05\x05n++;
\x05 a=n;
\x05\x05printf("请输入查询方式\n");
\x05\x05printf("1 歌曲名称 2 歌曲作者 3 歌曲演唱者\n");
ch=getchar();getchar();
\x05\x05switch(ch)
\x05\x05{
\x05\x05case 1:
\x05\x05\x05\x05 printf("请输入要查找歌曲名称:\n");
\x05\x05\x05\x05 gets(numstr);
\x05\x05\x05\x05 for(n=0;n
问题解答:
我来补答展开全文阅读