Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the member Management system in C language

Shulou Source: shulou.com Published: 2022-06-01 04:57:20 10月04日 Update

In this article, the editor introduces in detail "how to realize the member management system in C language". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to realize the member management system in C language" can help you solve your doubts. Let's follow the editor's ideas to learn new knowledge.

Membership information includes: membership number (6 digits, unique), name, ID number, contact number, status (1 indicates normal, 0 indicates loss).

Member management includes: member addition, deletion, modification (member number can not be modified), loss report, inquiry, contact report loss.

First of all, let's see the effect:

The above code:

# include # include # include struct VIP / / definition structure, which stores member account number, name, ID number, contact information, status, balance {long no; char name [20]; / / name, ID number contains characters, and uses char to define char IDcard [19]; char phone [12]; / / contact number has 11 digits, which is beyond the scope of int. Use string to define int zhuangtai. / / if the status is 1, it is normal; if it is 0, the status is int yue;}; struct VIP s [50]; / / define the structure array int number 0; / / n represents the number of members deposited void init (); / / for the meaning, see main main function void print (); struct VIP gete (); void add1 (); void findbyno () Void findbyname (); void findbyIDcard (); void findbyphone (); void mod (); void del (); void sort (); void transaction (); void init () / / initialization (unique 6 member accounts) {int fanci1 / / 1 unique 0 not unique printf ("Please enter the member's account number, name, ID number, contact number, balance, status\ n"); printf ("stop entering when the membership number is 0"); while (n)

Tags: Member input account number identity query contact telephone contact number certificate number information name status management balance management system system sorting consumption language location Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Xiaomi Apple Shulou Technology macOS