📄 nesoft.h
字号:
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<pthread.h>
#include<unistd.h>
#include<sys/time.h>
#include<sys/wait.h>
#include<sys/types.h>
#include<limits.h>
/*
//延迟时间
struct timeval delay_2;
struct timeval delay_5;
delay_2.tv_sec =2;
delay_2.tv_usec=0;
delay_5.tv_sec =5;
delay_5.tv_usec=0;
*/
struct book
{
char press_id;
char *kind;
int cursor_name;
unsigned long name_id;
int lib_num;
char f_y_n;
char g_y_n;
};
struct book_store
{
char store_id;
char *kind[7];
int scrimbe_num[7];
};
struct buyer
{
char buyer_id;
char *kind[7];
int buy_num[7];
};
int cursor_a=0;
int cursor_b=0;
//A B出版社分别都有 C D E 书店的信息
struct book_store press_store[3];
//A B 出版社均出版六种书
struct book press_a_book[6];
struct book press_b_book[6];
//F和G购买者
struct buyer final_buyer[2];
//所有函数的声明
void license(char store_id);
void press_new(void * ab_press_id );
struct book* search_press(int cursor_name,char store_id,char press_id,struct book* a_book);
struct book * scrimber_press(char press_id, char store_id,int cursor_name,int num,struct book *a_book);
void repress(char press_id,int cursor_name,int num);
void store_beginer();
void store_scrimbe(char store_id,char press_id,int cursor_name,int num);
void sell_book(void * cd_store_id);
//int fresh_file(char store_id,FILE * fp);
void e_licence();
struct book * search_for_buyer(char buyer_id,struct book *a_book);
void buy_from_e_store(void * fg_buyer_id);
void tell_store_buy(struct book temp,char store_id);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -