creatnew.c

  #include <stdio.h>
#include <dos.h>
#include <io.h>

void main(void)
 {
   int handle;

   if ((handle = creatnew("NEW.DAT", 0)) == -1)
     printf("Error creating NEW.DAT/n");
   else
    {
      printf("File successfully created/n");
      close(handle);
    }
 }

menu.c: In function 'showTeacherMenu': menu.c:96:27: warning: implicit declaration of function 'createNode'; did you mean 'creatNode'? [-Wimplicit-function-declaration] Student* newStudent = createNode(id, name, scores); ^~~~~~~~~~ creatNode menu.c:96:27: warning: initialization of 'Student *' {aka 'struct Student *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] menu.c:97:5: warning: implicit declaration of function 'addStudentToEnd'; did you mean 'addStudentToHead'? [-Wimplicit-function-declaration] addStudentToEnd(list, newStudent); ^~~~~~~~~~~~~~~ addStudentToHead menu.c:104:13: warning: implicit declaration of function 'syetem'; did you mean 'system'? [-Wimplicit-function-declaration] syetem("cls"); ^~~~~~ system menu.c:126:33: warning: passing argument 2 of 'deleteStudent' makes pointer from integer without a cast [-Wint-conversion] deleteStudent(list,Id); ^~ In file included from menu.c:4: init.h:33:44: note: expected 'char *' but argument is of type 'int' int deleteStudent(StudentList* list, char* targetID);//?1;36mm~~~~~~^~~~~~~~ menu.c:167:14: warning: implicit declaration of function 'showSortedBYTotal'; did you mean 'showSortedByTotal'? [-Wimplicit-function-declaration] showSortedBYTotal(list,sortChoice==1?1:0); ^~~~~~~~~~~~~~~~~ showSortedByTotal C:\Users\j5753\AppData\Local\Temp\ccBlI3K7.o:menu.c:(.text+0x1f8): undefined reference to `findStudentByID' C:\Users\j5753\AppData\Local\Temp\ccBlI3K7.o:menu.c:(.text+0x312): undefined reference to `createNode' C:\Users\j5753\AppData\Local\Temp\ccBlI3K7.o:menu.c:(.text+0x331): undefined reference to `addStudentToEnd' C:\Users\j5753\AppData\Local\Temp\ccBlI3K7.o:menu.c:(.text+0x360): undefined reference to `syetem' C:\Users\j5753\AppData\Local\Temp\ccBlI3K7.o:menu.c:(.text+0x3e7): undefi
09-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值