91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 28KB
    文件類型: .c
    金幣: 1
    下載: 0 次
    發布日期: 2024-02-04
  • 語言: C/C++
  • 標簽: C語言??通訊錄??

資源簡介

非常強大的功能 并有注釋 #include <windows h> #include <math h> #include <conio h> #include <stdio h> #include <stdlib h> #include <string h> #include <time h> time t函數 頭文件 struct Student { char name[20]; 姓名 char gender[20]; 性別 char tel[20]; 電話 char email[50]; 郵箱 char address[100]; 地址 }; typedef struct Student SS; 給struct Student賦別名 void login ; 登入模塊 void display menu ; 主菜單 void showMenu ; 匯總統計菜單 void system menu SS student int length ; 菜單選擇 int inputInfo SS student int length ; 輸入信息 int check char string ; "ESC"判斷函數 void print SS find[] int i ; 根據"i"輸出特定成員信息 void outputInfo SS student int length ; 輸出信息 int queryInfo SS find int length ; 查詢信息 void queryOutput SS find int index ; void queryOutputInfo SS find int i ; void statistic SS student int length ; 匯總統計選擇 void singel output SS student int length ; 輸出部分學生信息 int read save SS student int length ; 讀取 寫入 文件 void read SS student int length ; 讀取文件 void save SS student int length ; 保存文件 void copy File SS student int length ; 備份文件 void save time ; 保存登入時間 void CursorPosition int x int y ; 設置光標位置 void show welcome ; 顯示歡迎使用系統頁面 void log info char name[] int n ; 記錄操作日志 name 用戶名 n 操作方式 void Date operate ; 查看操作日志 void user ; 用戶信息模塊 void change pw ; 更改密碼 void register control ; 注冊控制 void source take ; 資源占用 void log out ; int changed length 0; 總共錄入多少人 int N 1001; 數組的局限之處 數組在分配空間的時候需要常量來計算 不能確定大小不能分配所需空間大小 char show time[30]; 時間存放字符數組 int first 1; 是否剛剛登入系統 1 代表是 int flag read 0; 是否已從文件讀入信息 0 代表不是">非常強大的功能 并有注釋 #include <windows h> #include <math h> #include <conio h> #include <stdio h> #includ

資源截圖

代碼片段和文件信息

#include?
#include?
#include?
#include?
#include?
#include?
#include????//?time_t函數?頭文件?

struct?Student
{
????char?name[20]; //?姓名?
????char?gender[20]; //?性別?
????char?tel[20]; //?電話?
char?email[50]; //?郵箱?
????char?address[100]; //?地址?
};

typedef?struct?Student?SS;

//?給struct?Student賦別名?
void?login(); //登入模塊?
void?display_menu(); //主菜單?
void?showMenu(); //匯總統計菜單?
void?system_menu(SS?*studentint?length);? //菜單選擇?
int??inputInfo(SS?*studentint?length); //輸入信息?
int?check(char?*string);????????????????????//“ESC“判斷函數?
void?print(SS?find[]int?i); //根據‘i‘輸出特定成員信息?
void?outputInfo(SS?*studentint?length); //輸出信息?
int??queryInfo(SS?*findint?length); //查詢信息?
void?queryOutput(SS?*findint?*index);
void?queryOutputInfo(SS?*findint?i);
void?statistic(SS?*studentint?length); //匯總統計選擇?
void?singel_output(SS?*studentint?length); //輸出部分學生信息?
int?read_save(SS?*studentint?length); //讀取?寫入?文件?
void?read(SS?*studentint?length); //讀取文件?
void?save(SS?*studentint?length); //保存文件?
void?copy_File(SS?*studentint?length); ????//備份文件?
void?save_time();???????????????????????????//?保存登入時間?
void?CursorPosition(int?xint?y); //?設置光標位置?
void?show_welcome();????????????????????????//?顯示歡迎使用系統頁面?

void?log_info(char?name[]int?n);? //?記錄操作日志?
?????????//???name?用戶名?????n?操作方式?
?????????
void?Date_operate(); //?查看操作日志?
void?user(); //?用戶信息模塊?
void?change_pw(); //?更改密碼?
void?register_control();? //?注冊控制?
void?source_take(); //?資源占用?
void?log_out();

int?changed_length=0; //?總共錄入多少人?
int?N=1001;? //?數組的局限之處,數組在分配空間的時候需要常量來計算不能確定大小不能分配所需空間大小?
char?show_time[30]; //?時間存放字符數組?
int?first=1;? //?是否剛剛登入系統??1?代表是?
int?flag_read=0; //?是否已從文件讀入信息??0?代表不是?


void?show();
int?main()
{
//?動態登入,功能未開發?
show();
login();???????? //?登入模塊?
SS?student[N];????? ????//?初始化結構體數組?
????read(studentN);?????? //?從文件讀入?
????first=0;
????system_menu(studentN); //?顯示菜單?
}
void?show(){
HANDLE?hCon?=?GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hConBACKGROUND_INTENSITY
|FOREGROUND_INTENSITY?|?BACKGROUND_RED?|?BACKGROUND_GREEN?|?BACKGROUND_BLUE
|FOREGROUND_RED);
system(“cls“);
char?tip[]=“▁▂▃▅▆▇▉??Welcome?.“;?
int?i=0;
CursorPosition(1227);
while(i<25)
{
printf(“%c“tip[i]);
Sleep(25);
i++;
}
CursorPosition(2560);
system(“pause“);
}


void?system_menu(SS?*studentint?length)
{
system(“color?2f“);????????? //?窗體顏色顯示函數,頭文件?
char?choice[1]; //?減少輸入錯誤?
while(1){
? system(“cls“); //?清屏函數?
display_menu();
printf(“\n\t\t請輸入您的選擇:“);
fflush(stdin);
scanf(“%c“&choice[0]);
switch(choice[0]){
case?‘1‘:inputInfo(studentlength);break;
case?‘2‘:outputInfo(studentchanged_length);break;
case?‘3‘:student=queryInfo(studentchanged_length);break;??//?將查詢改動后的數組賦給原先的數組?
case?‘4‘:student

評論

共有 條評論