在vs2017中不能运行,怎么弄?

调试显示在system("cls");有错误(有断点),然后一直卡在那里


int count;
    for(count=0;;count++)
    {
        
        char cou[21];
        char way[21] = "Words\\";
        
        sprintf_s(cou,20,"%d",count);
        printf("%s",cou);
        strcat_s(way, 20, cou);
        FILE *fp;
        fopen_s(&fp,way, "r");
        if(fp == NULL)
        {
            fclose(fp);
            system("cls");
            break;
        } 
        fclose(fp);
    }

把if里面的fclose(fp);注释掉。fp==NULL表示文件打开失败了,fclose肯定就报错了。

是否缺少头文件:#include<windows.h>