Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Analysis and understanding of Information Management system

Shulou Source: shulou.com Published: 2022-06-01 00:34:52 10月04日 Update

# include "stdio.h"

# include "stdlib.h"

# include "string.h"

# include "conio.h"

# define PAGE 3

# define MAX 1000

# define N 5

Int kryp0

/ * structure type * /

Typedef struct

{int num;/* number * /

Char name [20]; / * item name * /

Char sex [5]; / * species * /

Int age;/* shelf life * /

Char studentclass [20]; / * Brand * /

Int score;/* Price * /

} STUDENTS

Int read_file (STUDENTS stu [])

{FILE * fp

Int iTunes 0

If ((fp=fopen ("stu.txt", "rt")) = = NULL)

{printf ("\ n\ n* inventory file does not exist please create")

Return 0

}

While (feof (fp)! = 1)

{

Fread (& stub [I], sizeof (STUDENTS), 1meme FP)

If (StuI] .num = = 0)

Break

Else

ITunes +

}

Fclose (fp)

Return i

}

Void save_file (STUDENTS stu [], int sum)

{FILE*fp

Int i

If ((fp=fopen ("stu.txt", "wb")) = = NULL)

{printf ("file write error!\ n")

Return

}

For (iSuppli)

Tags: Information items input price student user password user name name shelf life brand category system menu management system management error file query handsome Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Tech Info Microsoft Linux OPPO Reno