Home > Back-end >  This section on the Dev C no problem but not on the Visual C compiler
This section on the Dev C no problem but not on the Visual C compiler

Time:04-16

Struct student * head=NULL;
If ((fp1=fopen (" record. TXT ", "r"))==NULL)
{
Fp2=fopen (" record. TXT ", "w");
//if there is no record. TXT creates a
The fclose (fp2);
}
The head=the load ();
While (1)
{
Face ();
Printf (" the choice you need to operate the function of the number: ");
The scanf (" % d ", & amp; C);
getchar();
The switch (c)
{
Case 1: the head=append (head); break;
Case 2: print (the head); break;
Case 3: the head=del (head); break;
Case 4: search (the head); break;
Case 5: save (head); break;
Case 6: exit (0); break;
Default: printf (" Enter the error!!!!! \n");
}
//printf (" * * * * * * * * * * * * * * * * * \ n ");
Printf (" please press ENTER to return to function operation menu \ n ");
//printf (" * * * * * * * * * * * * * * * * * \ n ");
getchar();
System (" CLS ");
}
How should change

CodePudding user response:

This code is not complete, no head no tail?
  • Related