⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 save.1.c.c

📁 C语言成绩管理系统
💻 C
字号:
#include "stdio.h"
struct student
{
   char filename[10];
   long number[10];
   float score[100];
 }stud;
main()
{
   int i;
   char filename;
   long number;
   float score;
   FILE *fp;
   struct student stud;

   if((fp=fopen("c:\\filename.stud","w"))==NULL)
   {
      printf("Cannot open the file\n");
      exit(1);
    }
   scanf("%s%s%s",&stud.filename[10],&stud.number[10],&stud.score[100]);
    if((number==0))
    {
       printf("stop input ");
       exit(1);
     }
    if(fread(&stud,sizeof(filename),7,fp)!=7)
    {
       printf("file read error\n");
       exit(1);
     }
     getch();
     fclose(fp);
}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -