为什么fopen总是打开失败,求原因
#include<stdio.h>#include<stdlib.h>
#include"head.h"
void save(struct student stu[],int k)
{
FILE *fp;
int i;
char x;
if ((fp = fopen("C:\\Users\\asusq\\Desktop\\mmh2\\wen.txt", "w")) == NULL);
{
printf("error\n");
exit(-1);
}