主题:求助.不胜感激
#include<stdio.h>
#define max 100
typedef struct
{char ch[max];int len;}seqstring;
void main()
{seqstring*s,*t;int flag=0;int i,j;i=j=1;
scanf("s%""s%",s,t);
while((i<=s->len)&&(j<=t->len))
{if(s->ch[i]==t->ch[j]))
{i++;j++;}
else{i=i-j+2;j=1;}
if(j>=t->len)
flag=flag+1;j=1;}
printf("d%",flag);}
计算一个子串在串中出现的次数,请高手帮忙指点一下错误
0110.cpp
e:\program files\microsoft visual studio\myprojects\0110\0110.cpp(20) : fatal error C1010: unexpected end of file while looking for precompiled header directive
执行 E:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe 时出错.
Edit and Continue - 1 error(s), 0 warning(s)
以上为系统提示错误,小弟愚钝.请高手帮忙.感激不尽